Code Monkey home page Code Monkey logo

Comments (7)

jDramaix avatar jDramaix commented on September 26, 2024

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.

surg avatar surg commented on September 26, 2024

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.

jDramaix avatar jDramaix commented on September 26, 2024

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.

surg avatar surg commented on September 26, 2024

BTW, the Chosen itself is not capable to handle similar case correctly. Check this gist: https://gist.github.com/3866363

from gwtchosen.

jDramaix avatar jDramaix commented on September 26, 2024

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.

surg avatar surg commented on September 26, 2024

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/674635432b422a5cb343bbd62168b41eea83becd

On 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.

jDramaix avatar jDramaix commented on September 26, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.