Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fillWidth method on unvisible ScrollTable not runs #16

Closed
GoogleCodeExporter opened this issue Jan 26, 2016 · 4 comments
Closed

fillWidth method on unvisible ScrollTable not runs #16

GoogleCodeExporter opened this issue Jan 26, 2016 · 4 comments

Comments

@GoogleCodeExporter
Copy link

What steps will reproduce the problem?
1. Scrolltable on a tabPanel, were scrollTable tab panel is not visible (
not selected tab ).
2. Executing the table.fillWidth() method.
3. Select the tab where's the ScrollTable.

What is the expected output? What do you see instead?
When the ScrollTable tab is selected ( visible ) the fillWidth() runs
properly, but when this is not selected (unvisible) the fillWidth makes
nothing.

What version of the product are you using? On what operating system?
GWT 1.4.6, and Ubuntu Feisty

Please provide any additional information below.
Because I resize several widget areas ( some not always visible, like some
unvisible tabs on a tabPanel ) it'll be good, that the table column adjust
be fired before any resizing ( visible or unvisible tab ).

Actual way to solve it, on my case, is every time I set visible a tab with
a scrollPanel then fire the fillWidth method.

Original issue reported on code.google.com by darkman...@gmail.com on 22 Oct 2007 at 9:38

@GoogleCodeExporter
Copy link
Author

Original comment by gwt.team...@gmail.com on 23 Oct 2007 at 1:56

  • Changed state: Accepted

@GoogleCodeExporter
Copy link
Author

The ScrollTable must be visible for fillWidth to work properly.  If the 
ScrollTable
is not visible, its clientWidth is 0, so we have no way of determining how much 
width
is available to fill.

However, you can set the policy to RESIZE_POLICY_FILL_WIDTH, which will 
automatically
try to fill the width every time the ScrollTable becomes visible.

scrollTable.setResizePolicy(ScrollTable.RESIZE_POLICY_FILL_WIDTH);

Original comment by gwt.team...@gmail.com on 28 Jan 2008 at 10:50

  • Changed state: Invalid

@GoogleCodeExporter
Copy link
Author

Thanks for you support I'll use the policy as you say.

Original comment by darkman...@gmail.com on 9 Feb 2008 at 10:07

@GoogleCodeExporter
Copy link
Author

Original comment by sumitcha...@google.com on 2 May 2008 at 5:47

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant