Hello, I have a HLayout, which contains a Toolstrip. The toolstrip has overflow:"hidden", and contains several ToolStripButtons.
After Toolstrip is created, I call toolstrip.getScrollWidth(), but it returns 0 (I'm loggin result to console). Also, calling toolstrip.getWidth() returns a wrong value: 250, but in Smartclient console I see that toolstrip actually has width = 750..
If I resize the browser window (even 1 pixel), then getScrollWidth() and getWidth() start to return the right values. Why is this happening?
I need to be able to know the width and scrollWidth of the toolstrip right after it's created, because if scrollWidth is bigger than width, I have to add another component to the HLayout. Is this possible?
Thanks in advance
After Toolstrip is created, I call toolstrip.getScrollWidth(), but it returns 0 (I'm loggin result to console). Also, calling toolstrip.getWidth() returns a wrong value: 250, but in Smartclient console I see that toolstrip actually has width = 750..
If I resize the browser window (even 1 pixel), then getScrollWidth() and getWidth() start to return the right values. Why is this happening?
I need to be able to know the width and scrollWidth of the toolstrip right after it's created, because if scrollWidth is bigger than width, I have to add another component to the HLayout. Is this possible?
Thanks in advance