Comments (7)
Check the issue #11
It's a bug in GwtQuery itself. You can either use the last snapshot of gwtQuery or call the method forceRedraw() of the ChosenListBox when the tab is showing
from gwtchosen.
Hi Julien.
Thanks for the response.
The issue is reproduced even with the latest gwtquery snapshot (though forceRedraw() helps).
But I'm afraid the problem is not in gwtquery itself, but rather on a browser level. The element's offsetWidth and clientWidth are 0 until the element is shown in browser. At least this is how firefox behaves.
Unfortunately forceRedraw() is not a good fit for our case... Will look for another workaround.
from gwtchosen.
nope it's a bug in GQuery. JQuery is able to calculate the dimensions of a invisible element (it makes temporarily the element visible and gets the dimension).
I will test and reopen the GQuery bug if it's needed
from gwtchosen.
BTW, the Chosen itself is not capable to handle similar case correctly. Check this gist: https://gist.github.com/3866363
from gwtchosen.
You are using an old version of jquery : use the last one (1.8.2) and your
example works.
https://gist.github.com/3866588/674635432b422a5cb343bbd62168b41eea83becd
On Wed, Oct 10, 2012 at 5:36 PM, Yuri [email protected] wrote:
BTW, the Chosen itself is not capable to handle similar case correctly.
Check this gist: https://gist.github.com/3866363—
Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-9307601.
from gwtchosen.
Indeed.
Thanks for the hint :)
On Wednesday, October 10, 2012 at 7:13 PM, Julien Dramaix wrote:
You are using an old version of jquery : use the last one (1.8.2) and your
example works.
https://gist.github.com/3866588/674635432b422a5cb343bbd62168b41eea83becdOn Wed, Oct 10, 2012 at 5:36 PM, Yuri <[email protected] (mailto:[email protected])> wrote:
BTW, the Chosen itself is not capable to handle similar case correctly.
Check this gist: https://gist.github.com/3866363—
Reply to this email directly or view it on GitHubhttps://github.com//issues/20#issuecomment-9307601.—
Reply to this email directly or view it on GitHub (#20 (comment)).
from gwtchosen.
FYI, by waiting that GwtQuery is fixed, I fix the issue directly in GwtChosen.
Could you test with the last snapshot : https://github.com/jDramaix/gwtchosen/raw/master/release/gwtchosen-1.0.3-snapshot.jar
Please comment directly on the issue #11
Thanks
from gwtchosen.
Related Issues (20)
- Missing classes into default chosen.gss
- ChosenValueListBox on change event is not fired HOT 2
- Error on demo page in custom filtering HOT 4
- Error "this.selectedItem is undefined" when add new items to ChosenListBox and update it HOT 2
- Is it possible to use gwtchosen as searchbox for multiple custom search terms? HOT 2
- X icon with multiple select chosen isn't centered
- No space in No results text HOT 1
- ChosenValueListBox allowSingleDeselect not working as expected HOT 17
- opt group dissapears on mobile gwtchosen view when select/deselecting its options HOT 2
- Make sure that box-sizing is set to content-box HOT 1
- Groups are not displayed when using a custom ResultFilter
- Using a custom ProvidesKey will cause an error in MultiChosenValueBox
- ShowingDropDownEvent missfired in iPad HOT 2
- ChosenChangeEvent fired only on selection (not deselection) HOT 1
- ChosenListBox.wrap() leads to NPE
- gwtchosen select box closes when clicking scrollbar (using IE) HOT 1
- Chosen List Box Width problems (too narrow)
- Custom Results Filter Resets Selected Options
- Failed to upgrade from GWT 2.7.0 to 2.8.0 HOT 2
- Chosen not Filtering Correctly and Error When Using Down Arrow Key to Select Results
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gwtchosen.