Skip to content

Commit

Permalink
Revert "scrollWindow: Corrected the property name from 'scrollwidth' …
Browse files Browse the repository at this point in the history
…to 'scrollWidth' in the _scrolledWindowControl function"

This reverts commit 15ffda9.
Related to issues #9614 #9559 #9770

Signed-off-by: Szymon Kłos <[email protected]>
Change-Id: I19d44db2252de91c0ca637256239d4a9405e1c31
  • Loading branch information
eszkadev committed Aug 29, 2024
1 parent fcd82ee commit d9706a8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions browser/src/control/jsdialog/Widget.ScrolledWindow.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function _scrolledWindowControl(parentContainer, data, builder) {
scrollwindow.style.overflowX = 'scroll';

var realContentHeight = scrollwindow.scrollHeight;
var realContentWidth = scrollwindow.scrollWidth;
var realContentWidth = scrollwindow.scrollwidth;

var margin = 15;

Expand All @@ -94,7 +94,7 @@ function _scrolledWindowControl(parentContainer, data, builder) {
var timeoutLimit = 2;
var updateSize = function () {
realContentHeight = scrollwindow.scrollHeight;
realContentWidth = scrollwindow.scrollWidth;
realContentWidth = scrollwindow.scrollwidth;
if (realContentHeight === 0 || realContentWidth === 0) {
if (timeoutLimit--)
setTimeout(updateSize, 100);
Expand Down

0 comments on commit d9706a8

Please sign in to comment.