Hello there is an issue about using autocomplete inside a dialog.
The suggestion Box is attached to the document and the dialog is floating, so scrolling does not work.
Autocomplete dropdown and dialogs
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
I've replicated it, will be looked in later in detail. Thx!
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
It will have side effects, we'll see other ways.
But i think absolute position for dialog is important so we can scroll the page with the dialog if the window is too small or low resolution.
I have problems to scroll a dialog when resolution is low.
(Dialog is not scrolling, only the background is scrolling without absolute position)
I have problems to scroll a dialog when resolution is low.
(Dialog is not scrolling, only the background is scrolling without absolute position)
Hello gratz for the new version of primefaces 3 but i still have problems with dialog positionning in 3.0 final
(see picture)
http://i41.tinypic.com/250v9tj.png
i have fixed using old M3 css and absolute positioning
.ui-dialog {
position: absolute !important;
}
/*Autocomplete M3*/
.ui-autocomplete {
width: auto;
zoom: 1;
cursor: pointer;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
position:static;
}
.ui-autocomplete-panel {
position: absolute;
overflow: auto;
}
.ui-autocomplete-panel .ui-autocomplete-list {
padding: 0.4em;
border: 0 none;
}
.ui-autocomplete-panel .ui-autocomplete-list-item {
border:0px none;
cursor:pointer;
font-weight:normal;
margin:1px 0;
padding:3px 5px;
text-align:left;
}
.ui-autocomplete-panel .ui-autocomplete-table {
border-collapse:collapse;
width:100%;
}
.ui-autocomplete-panel .ui-autocomplete-table td {
border-width: 1px;
border-style: solid;
border-color: inherit;
padding:4px 10px 4px 10px;
}
.ui-autocomplete .ui-button-icon-only .ui-button-text {
padding: 0.29em;
}
Why not keep absolute positionning?
(see picture)
http://i41.tinypic.com/250v9tj.png
i have fixed using old M3 css and absolute positioning
.ui-dialog {
position: absolute !important;
}
/*Autocomplete M3*/
.ui-autocomplete {
width: auto;
zoom: 1;
cursor: pointer;
-moz-box-shadow: none;
-webkit-box-shadow: none;
box-shadow: none;
position:static;
}
.ui-autocomplete-panel {
position: absolute;
overflow: auto;
}
.ui-autocomplete-panel .ui-autocomplete-list {
padding: 0.4em;
border: 0 none;
}
.ui-autocomplete-panel .ui-autocomplete-list-item {
border:0px none;
cursor:pointer;
font-weight:normal;
margin:1px 0;
padding:3px 5px;
text-align:left;
}
.ui-autocomplete-panel .ui-autocomplete-table {
border-collapse:collapse;
width:100%;
}
.ui-autocomplete-panel .ui-autocomplete-table td {
border-width: 1px;
border-style: solid;
border-color: inherit;
padding:4px 10px 4px 10px;
}
.ui-autocomplete .ui-button-icon-only .ui-button-text {
padding: 0.29em;
}
Why not keep absolute positionning?
-
- Information
-
Who is online
Users browsing this forum: No registered users and 43 guests