Comments (8)
Any updates or workarounds for this bug? This widget would be perfect for a project I'm working on, but the drop-down gets clipped by the <g:center> panel.
from gwtchosen.
FYI - there's a thorough discussion of this problem in a Chosen thread here: harvesthq/chosen#86
from gwtchosen.
I spent some time fiddling with it and came up with the following hack to workaround the issue:
In a UiBinder configuration such as:
<g:north size = '80'>
<g:HTMLPanel ui:field="headerContainer">
<g:SimplePanel ui:field="header"/>
<g:SimplePanel ui:field="searchBar"/>
</g:HTMLPanel>
</g:north>
You can tell the north
element to allow overflows (i.e. allow the drop-down selector to extend below its bounds) using the following code in the view's constructor:
headerContainer.getElement().getParentElement().getStyle().setOverflow(Overflow.VISIBLE);
This allows the north panel's contents to spill below the 80 pixel limit set in UIBinder. Note that this works great if your header's content is indeed shorter than 80px, but would cause all sorts of messes if your header's content were larger than its allocated bounds.
Not an ideal solution, nor will it work for everyone, but it solved my issue!
from gwtchosen.
Definitely, it's an issue I have to resolve but like it is said in the chosen issue you mention, it's not trivial.
Thanks for the workaround !
you can rewrite it by using GQuery like this :
$(headerContainer).parent().css("overflow", "visible");
from gwtchosen.
Sure thing. Just food for thought: I have a GWT suggestBox adjacent to this gwtchosen box which extends beyond the limits of the DockLayoutPanel with no trouble (and works as expected when scrolled, etc.) I wonder if that code could be the basis for a GWT-based solution to the problem at some point in the future.
from gwtchosen.
In gwt-bootstrap, the same issue is raised : gwtbootstrap/gwt-bootstrap#231
GWT layout system is simply not playing nice with other css/js frameworks;
from gwtchosen.
Is there any chance the non-trivial fix from this branch https://github.com/gil/chosen/commits/new_version gets ported to GWTChosen?
GWTChosen is awesome. However, in current state it cannot be used with LayoutPanels at all.
from gwtchosen.
Not sure it's the good solution
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.