Skip to content

Commit

Permalink
fix max height beyond screen height thus making dropdownlist disappears
Browse files Browse the repository at this point in the history
  • Loading branch information
smallpath committed May 25, 2017
1 parent 2b1ddc2 commit c658f1e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/Sp_memory.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -6846,6 +6846,8 @@ module.exports = function () {
sp.parentDroplist.size.height = sp.droplist.size.height;
sp.parentDroplist.location.y = 0;
sp.parentDroplist.itemSize.width = (parentDroplistWidth - 27 * scale) / scale;
var screen = $.screens[0].toString().split('-').pop().split(':');
sp.droplist.maximumSize = sp.parentDroplist.maximumSize = [undefined, parseInt(screen[1]) - 100];
sp.gv.refresh();
};
this.winClose = function () {
Expand Down
2 changes: 2 additions & 0 deletions src/ui/function.js
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,8 @@ module.exports = function() {
sp.parentDroplist.size.height = sp.droplist.size.height
sp.parentDroplist.location.y = 0 // fix margin error for mac
sp.parentDroplist.itemSize.width = (parentDroplistWidth - 27 * scale) / scale
var screen = $.screens[0].toString().split('-').pop().split(':')
sp.droplist.maximumSize = sp.parentDroplist.maximumSize = [undefined, parseInt(screen[1]) - 100]
sp.gv.refresh()
}
this.winClose = function() {
Expand Down

0 comments on commit c658f1e

Please sign in to comment.