Different behavior of add_actor and add_child methods for ScrollView
Documentation for Clutter says that Clutter.Container.add_actor
method is deprecated, and Clutter.Actor.add_child
should be used instead.
That works for all St
classes that i used but for ScrollView
. If i use add_actor
method i see expected appearance:
But if i use add_child
method, i see:
Here's how i initialize ScrollView
:
const scrollView = new St.ScrollView({
hscrollbar_policy: St.PolicyType.NEVER,
vscrollbar_policy: St.PolicyType.AUTOMATIC,
overlay_scrollbars: true, x_expand: true, y_expand: true,
});