mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2024-11-26 10:40:19 -06:00
Fix the position of text editor of a cell in Query Tool.
This commit is contained in:
parent
0aeb20ee64
commit
98815af8b6
@ -119,19 +119,8 @@ import JSONBigNumber from 'json-bignumber';
|
||||
|
||||
function calculateEditorPosition(position, $wrapper) {
|
||||
var $edit_grid = $wrapper.parent().find('#datagrid');
|
||||
var _elem_height = $edit_grid.height(),
|
||||
is_hidden, _position;
|
||||
// We cannot display editor partially visible so we will lift it above select column
|
||||
if (position.top > _elem_height) {
|
||||
is_hidden = position.bottom - _elem_height;
|
||||
}
|
||||
|
||||
if (is_hidden) {
|
||||
_position = position.top - is_hidden;
|
||||
} else {
|
||||
_position = position.top - 7;
|
||||
}
|
||||
position.top = _position;
|
||||
position.top = position.top - $wrapper.height();
|
||||
|
||||
var grid_width = $edit_grid.width(),
|
||||
popup_width = $wrapper.width() + 32;
|
||||
|
Loading…
Reference in New Issue
Block a user