Simplify scrollBar size calculations

thanks, @cycomachead !
pull/89/head
jmoenig 2019-08-06 13:17:29 +02:00
rodzic a629388f51
commit 1d66211c92
1 zmienionych plików z 2 dodań i 2 usunięć

Wyświetl plik

@ -10667,7 +10667,7 @@ ScrollFrameMorph.prototype.scrollX = function (steps) {
newX;
if (this.vBar.isVisible) {
r -= this.vBar.width();
r -= this.scrollBarSize;
}
newX = cl + steps;
@ -10690,7 +10690,7 @@ ScrollFrameMorph.prototype.scrollY = function (steps) {
newY;
if (this.hBar.isVisible) {
b -= this.hBar.height();
b -= this.scrollBarSize;
}
newY = ct + steps;