Skip to content

Commit

Permalink
ZK-4960: Listbox doesn't keep scrollbar position when applying hflex=…
Browse files Browse the repository at this point in the history
…"min" on a listheader in mobile
  • Loading branch information
DevChu committed Nov 1, 2024
1 parent 2ef6cbb commit 59652f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions zkdoc/release-note
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ ZK 10.1.0
ZK-5810: Client MVVM: XEL Methods in include
ZK-5813: a side effect of ZK-5476 for BookCRUD2Test and BookCRUDTest
ZK-5777: sendRedirect() doesn't work because of the encoded &
ZK-4960: Listbox doesn't keep scrollbar position when applying hflex="min" on a listheader in mobile

* Upgrade Notes
+ Remove Htmls.encodeJavaScript(), Strings.encodeJavaScript(), Strings.escape() with Strings.ESCAPE_JAVASCRIPT, and replace them with OWASP Java Encoder APIs instead.
Expand Down
2 changes: 1 addition & 1 deletion zul/src/main/resources/web/js/zul/mesh/HeadWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,7 @@ export class HeadWidget extends zul.Widget<HTMLTableRowElement> {
wgt._calcSize(); // yes, we need to do it again.
}
// ZK-2551: need to restore scroll pos after flexs are fixed
if (zk(ebody).hasHScroll() && currentLeft != ebody.scrollLeft) {
if (ebody.scrollWidth >= ebody.clientWidth && currentLeft != ebody.scrollLeft) {
ebody.scrollLeft = currentLeft;
if (ehead)
ehead.scrollLeft = currentLeft;
Expand Down

0 comments on commit 59652f2

Please sign in to comment.