Browse Source
fix sunset at the left edge of the window
pull/752/head
MuTaToR08
8 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
1 additions and
1 deletions
-
src/commands/view/SelectComponent.js
|
|
@ -444,7 +444,7 @@ module.exports = { |
|
|
}); |
|
|
}); |
|
|
var leftPos = pos.left + pos.elementWidth - pos.targetWidth; |
|
|
var leftPos = pos.left + pos.elementWidth - pos.targetWidth; |
|
|
toolbarStyle.top = pos.top + unit; |
|
|
toolbarStyle.top = pos.top + unit; |
|
|
toolbarStyle.left = leftPos + unit; |
|
|
toolbarStyle.left = (leftPos < 0 ? 0 : leftPos) + unit; |
|
|
toolbarStyle.display = origDisp; |
|
|
toolbarStyle.display = origDisp; |
|
|
}, |
|
|
}, |
|
|
|
|
|
|
|
|
|