Skip to content

Commit 0b5ad7c

Browse files
committed
use "is IScroller" rather than isScroller
1 parent 7f89703 commit 0b5ad7c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

haxe/ui/backend/ComponentImpl.hx

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import haxe.ui.core.ImageDisplay;
1313
import haxe.ui.core.Screen;
1414
import haxe.ui.core.TextDisplay;
1515
import haxe.ui.core.TextInput;
16+
import haxe.ui.core.IScroller;
1617
import haxe.ui.events.KeyboardEvent;
1718
import haxe.ui.events.MouseEvent;
1819
import haxe.ui.events.ScrollEvent;
@@ -257,14 +258,14 @@ class ComponentImpl extends ComponentBase {
257258
var parent:Component = c.parentComponent;
258259
value.toInts();
259260
if (value != null && parent != null) {
260-
if (parent.isScroller) {
261+
if ((parent is IScroller)) {
261262
parent.element.style.overflow = "hidden";
262263
}
263264
element.style.clip = 'rect(${HtmlUtils.px(value.top)},${HtmlUtils.px(value.right)},${HtmlUtils.px(value.bottom)},${HtmlUtils.px(value.left)})';
264265
element.style.left = '${HtmlUtils.px(Std.int(c.left - value.left))}';
265266
element.style.top = '${HtmlUtils.px(Std.int(c.top - value.top))}';
266267
} else {
267-
if (parent != null && parent.isScroller) {
268+
if (parent != null && (parent is IScroller)) {
268269
parent.element.style.removeProperty("overflow");
269270
}
270271
element.style.removeProperty("clip");

0 commit comments

Comments
 (0)