Skip to content

Commit

Permalink
hybrid scroller border offset should be border
Browse files Browse the repository at this point in the history
  • Loading branch information
ianharrigan committed May 28, 2024
1 parent 1987533 commit 5894116
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions haxe/ui/layouts/ScrollViewLayout.hx
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ class ScrollViewLayout extends DefaultLayout {
var borderSize = this.borderSize;

if (hscroll != null && hidden(hscroll) == false) {
var offset = 0;
var offset:Float = 0;
if (_component.isHybridScroller) {
offset = 1;
offset = borderSize;
}
var xpos = paddingLeft + borderSize - offset;
var ypos = component.componentHeight - hscroll.componentHeight - paddingBottom + marginTop(hscroll) - borderSize - offset;
Expand All @@ -36,9 +36,9 @@ class ScrollViewLayout extends DefaultLayout {
}

if (vscroll != null && hidden(vscroll) == false) {
var offset = 0;
var offset:Float = 0;
if (_component.isHybridScroller) {
offset = 1;
offset = borderSize;
}
var xpos = component.componentWidth - vscroll.componentWidth - paddingRight + marginLeft(vscroll) - borderSize - offset;
var ypos = paddingTop + borderSize - offset;
Expand Down

0 comments on commit 5894116

Please sign in to comment.