[
https://issues.jboss.org/browse/RF-10754?page=com.atlassian.jira.plugin.s...
]
Peter Hallama edited comment on RF-10754 at 4/2/12 4:57 AM:
------------------------------------------------------------
Hi Lukáš,
I just tested latest 4.2.1-SNAPSHOT Version (could not find CR1 yet) and have several
issues in my setup:
1. when the table is initially already exceeding the configured size vertical scrolling
seems to be broken (scroller is present (diabled) with full size)
2. for quite a lot of my tables I have issues with column-width adjustment which is just
not possible - a few tables work. -> I See the mouseover but "ondrag" it just
marks the column text.
3. in one usecase (when initializing a table onclick on another table row by ajax update)
the new table has no scrolling bars at all.
I tested on my version also, unfortunately I reformatted the js-code so a can't post a
diff but here are the changes:
1. add new Function
{code}
adjustScrollingIssues: function() {
var headerElem = document.getElementById(this.id + ":header");
var bodyElem = document.getElementById(this.id + ":body");
//compute correct width by gettong from parent div
var parentWidth =
this.scrollElement.parentNode.parentNode.parentNode.parentNode.parentNode.offsetWidth;
this.scrollElement.style.width = parentWidth + "px";
headerElem.style.width = parentWidth + "px";
if (bodyElem != null) {
//might be null in case of empty body...
bodyElem.style.width = parentWidth + "px";
}
},
{code}
2. initialize function just before ende
{code}
this.updateLayout();
//>>>Begin insert
this.adjustScrollingIssues();
this.updateLayout();
//this.adjustResizers();
//<<<end insert
this.updateScrollPosition(); //TODO Restore horizontal scroll position
{code}
still a little bit hacked but really seem to be stable now for my usecases.
was (Author: psh):
Hi Lukáš,
I just tested latest 4.2.1-SNAPSHOT Version (could not find CR1 yet) and have several
issues in my setup:
1. when the table is initially already exceeding the configured size vertical scrolling
seems to be broken (scroller is present (diabled) with full size)
2. for quite a lot of my tables I have issues with column-width adjustment which is just
not possible - a few tables work. -> I See the mouseover but "ondrag" it just
marks the column text.
3. in one usecase when initializing a table onclick on another table row by ajax update
the new tabler has no scrolling bars at all.
I tested on my version also, unfortunately i reformatted the js-code so a can't post a
diff but here are the canges:
1. add new Function
{code}
adjustScrollingIssues: function() {
var headerElem = document.getElementById(this.id + ":header");
var bodyElem = document.getElementById(this.id + ":body");
//compute correct width by gettong from parent div
var parentWidth =
this.scrollElement.parentNode.parentNode.parentNode.parentNode.parentNode.offsetWidth;
this.scrollElement.style.width = parentWidth + "px";
headerElem.style.width = parentWidth + "px";
if (bodyElem != null) {
//might be null in case of empty body...
bodyElem.style.width = parentWidth + "px";
}
},
{code}
2. initialize function just before ende
{code}
this.updateLayout();
//>>>Begin insert
this.adjustScrollingIssues();
this.updateLayout();
//this.adjustResizers();
//<<<end insert
this.updateScrollPosition(); //TODO Restore horizontal scroll position
{code}
still a little bit hacked but really seem to be stable now for my usecases.
extendedDataTable: two or more components placed on the page causes
horizontal scroll to disappear
--------------------------------------------------------------------------------------------------
Key: RF-10754
URL:
https://issues.jboss.org/browse/RF-10754
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-tables
Affects Versions: 4.0.0.Final
Reporter: Ilya Shaikovsky
Assignee: Lukáš Fryč
Fix For: 4.2.1.CR1
just get any example where table has horizontal scroll and add one more table by
copy/paste. (change id's if need)
result: scroll disappear.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira