Fix bug with page up/page down in textarea (Bug 39614)
This commit is contained in:
parent
62e64eb5b2
commit
090f89c9cb
|
@ -303,6 +303,15 @@ define([
|
|||
}, 10);
|
||||
});
|
||||
|
||||
Common.Utils.isChrome && $(document.body).on('keydown', 'textarea', function(e) {// chromium bug890248 (Bug 39614)
|
||||
if (e.keyCode===Common.UI.Keys.PAGEUP || e.keyCode===Common.UI.Keys.PAGEDOWN) {
|
||||
setTimeout(function(){
|
||||
$('#viewport').scrollLeft(0);
|
||||
$('#viewport').scrollTop(0);
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
|
||||
Common.NotificationCenter.on({
|
||||
'modal:show': function(){
|
||||
Common.Utils.ModalWindow.show();
|
||||
|
|
|
@ -41,6 +41,7 @@ label {
|
|||
background-color: @background-toolbar-ie;
|
||||
background-color: @background-toolbar;
|
||||
overflow: hidden;
|
||||
scroll-behavior: smooth; // chromium bug890248 (Bug 39614)
|
||||
}
|
||||
|
||||
.layout-region {
|
||||
|
|
|
@ -264,6 +264,15 @@ define([
|
|||
}
|
||||
});
|
||||
|
||||
Common.Utils.isChrome && $(document.body).on('keydown', 'textarea', function(e) {// chromium bug890248 (Bug 39614)
|
||||
if (e.keyCode===Common.UI.Keys.PAGEUP || e.keyCode===Common.UI.Keys.PAGEDOWN) {
|
||||
setTimeout(function(){
|
||||
$('#viewport').scrollLeft(0);
|
||||
$('#viewport').scrollTop(0);
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
|
||||
Common.NotificationCenter.on({
|
||||
'modal:show': function(e){
|
||||
Common.Utils.ModalWindow.show();
|
||||
|
|
|
@ -51,6 +51,7 @@ label {
|
|||
background-color: @background-toolbar-ie;
|
||||
background-color: @background-toolbar;
|
||||
overflow: hidden;
|
||||
scroll-behavior: smooth; // chromium bug890248 (Bug 39614)
|
||||
}
|
||||
|
||||
.layout-region {
|
||||
|
|
|
@ -299,6 +299,14 @@ define([
|
|||
}
|
||||
});
|
||||
|
||||
Common.Utils.isChrome && $(document.body).on('keydown', 'textarea', function(e) {// chromium bug890248 (Bug 39614)
|
||||
if (e.keyCode===Common.UI.Keys.PAGEUP || e.keyCode===Common.UI.Keys.PAGEDOWN) {
|
||||
setTimeout(function(){
|
||||
$('#viewport').scrollLeft(0);
|
||||
$('#viewport').scrollTop(0);
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
Common.NotificationCenter.on({
|
||||
'modal:show': function(e){
|
||||
Common.Utils.ModalWindow.show();
|
||||
|
|
|
@ -35,6 +35,7 @@ label {
|
|||
background-color: @background-toolbar-ie;
|
||||
background-color: @background-toolbar;
|
||||
overflow: hidden;
|
||||
scroll-behavior: smooth; // chromium bug890248 (Bug 39614)
|
||||
}
|
||||
|
||||
.layout-region {
|
||||
|
|
Loading…
Reference in a new issue