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

setVisible() breaks the widget #10

Closed
lplotni opened this issue Sep 20, 2012 · 5 comments
Closed

setVisible() breaks the widget #10

lplotni opened this issue Sep 20, 2012 · 5 comments
Labels
Milestone

Comments

@lplotni
Copy link

lplotni commented Sep 20, 2012

Using the setVisible() method on the ChosenListBox widget seems to completly break it. How to correctly hide and show the widget? I was semi-succesful with setVisible(false) and then forceRedraw() but this gives me kind of creepy feeling when using it. Have I overseen something?

jDramaix added a commit that referenced this issue Oct 1, 2012
@jDramaix
Copy link
Contributor

jDramaix commented Oct 1, 2012

I fixed this issue in the trunk. Could you test with this following snapshot release : https://github.com/jDramaix/gwtchosen/raw/master/release/gwtchosen-1.0.3-snapshot.jar

@jDramaix
Copy link
Contributor

any news ?

@lplotni
Copy link
Author

lplotni commented Oct 10, 2012

Sorry, for not giving you any feedback. I will test it this week and get
back to you.

On Wed, Oct 10, 2012 at 3:10 PM, Julien Dramaix notifications@github.comwrote:

any news ?


Reply to this email directly or view it on GitHubhttps://github.com//issues/10#issuecomment-9302203.

Lukasz Plotnicki
l.plotnicki[at]gmail.com

@lplotni
Copy link
Author

lplotni commented Oct 17, 2012

When I use setVisible(false) on a ChosenListBox in a uibinder setting, it still does not hide the widget. But maybe I'm doing something wrong as the widget doesn't seem to get initialized with correct width (defined in the uiBinder tag). Only on "redraw" of the encapsulating UI, the box gets resized. I'm using following structure: DockLayoutPanel with TabLayoutPanel - the ChosenListBox element is in one of the tabs. (Tab conent is also a LayoutPanel).

jDramaix added a commit that referenced this issue Oct 19, 2012
@jDramaix
Copy link
Contributor

I got it : the chosen component is not initialized yet when the setVisible method is called. So, this method had no effect on the visibility of the component.
I fixed that by keeping the 'visible' state of the widget and call the setVisible method with this state qfter the initialisation of the component.

I updated the snapshot : https://github.com/jDramaix/gwtchosen/raw/master/release/gwtchosen-1.0.3-snapshot.jar
Could check if it works ?

Concerning your problem of width, please refers to the issue #11

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

No branches or pull requests

2 participants