Skip to content

Commit

Permalink
bugfix. file list is not resized after upload anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
hungerpirat committed Jun 22, 2018
1 parent 2d2b023 commit d438b24
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/octoprint/static/js/app/viewmodels/files.js
Original file line number Diff line number Diff line change
Expand Up @@ -295,9 +295,10 @@ $(function() {
if (entryElement) {
// scroll to uploaded element
var entryOffset = entryElement.offsetTop;
self.listElement.slimScroll({
scrollTo: entryOffset + "px"
});
// disabled as it resizes the div.
//self.listElement.slimScroll({
// scrollTo: entryOffset + "px"
//});

// highlight uploaded element
var element = $(entryElement);
Expand Down

1 comment on commit d438b24

@andywerner
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes OctoPrint#298 UI: Design Library visible/scrollable area shrinks after file upload.

Please sign in to comment.