```An exact clone of the TabStrip View example is ...
# doodle
s
Copy code
An exact clone of the TabStrip View example is nested in a custom container in my top-leval MainView.
I want TabStrip to re-position (x-pos) itself when I re-size the display, but it will only do so after refreshing
the browser page.

The demo tabstrip re-positions itself when I re-size the display.  How can force my nested TabStrip's `boundsChanged`
event be triggered from my MainView's render function?   The container:  <https://github.com/ghubstan/doodle/blob/a5ca9b3169ded696c9af90a3b3b3a3df97a4f525/Natty/src/commonMain/kotlin/io/dongxi/natty/view/MainView.kt#L44>
a
Make your view width match your parent constraint width
n
a layout on the
Display
would let you reposition/resize your
MainView
when the display changes size. you could also add a layout to
MainView
(like you have for
mainContainer
) that would position/size
mainContainer
as the
MainView
changes bounds. in general you don’t need to explicitly use
boundsChanged
to do layout stuff. just install layouts at the levels you want to manage.
s
Got it. Thanks again @Nick. Diplay.layout = contstrain(MainView); MainView.layout = constraint(mainContainer); mainContainer.layout = constrain(Menu, etc...).