Skip to content
Snippets Groups Projects
Commit 47554591 authored by echicken's avatar echicken
Browse files

Reposition vertical scrollbar if parent frame has moved or been resized.

parent 60f996f9
No related branches found
No related tags found
No related merge requests found
...@@ -184,6 +184,12 @@ var ScrollBar = function (frame, opts) { ...@@ -184,6 +184,12 @@ var ScrollBar = function (frame, opts) {
self.open(); self.open();
} }
if (scrollBarFrame.x != frame.x + frame.width - 1 || scrollBarFrame.y != frame.y) {
scrollBarFrame.moveTo(frame.x + frame.width - 1, frame.y);
scrollArea.moveTo(scrollBarFrame.x, scrollBarFrame.y + 1);
bar.moveTo(scrollBarFrame.x, bar.y);
}
var adj = Math.min( var adj = Math.min(
scrollArea.height, scrollArea.height,
Math.round(scrollArea.height * (frame.height / frame.data_height)) Math.round(scrollArea.height * (frame.height / frame.data_height))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment