@@ -95,7 +95,7 @@ pimcore.plugin.processmanager.window.activeProcesses = Class.create(pimcore.plug
95
95
items : [
96
96
headerText ,
97
97
progressPanel ,
98
- actionBtnsPanel
98
+ actionBtnsPanel
99
99
] ,
100
100
} ) ;
101
101
@@ -105,7 +105,16 @@ pimcore.plugin.processmanager.window.activeProcesses = Class.create(pimcore.plug
105
105
this . displayList . push ( panel ) ;
106
106
if ( this . toast != null ) {
107
107
this . toast . insert ( 0 , panel ) ;
108
+
108
109
this . toast . show ( ) ;
110
+
111
+ //workaround for toast appearing at a random location after adding a process:
112
+ //after showing, set the postion to the bottom right
113
+ let width = $ ( window ) . width ( ) ;
114
+ let height = $ ( window ) . height ( ) ;
115
+ let toastSize = this . toast . getSize ( ) ;
116
+ //does only seem to work without animation if animations are disabled for the toast
117
+ this . toast . setPosition ( width - toastSize . width , height - toastSize . height , false ) ;
109
118
}
110
119
111
120
} ,
@@ -184,8 +193,8 @@ pimcore.plugin.processmanager.window.activeProcesses = Class.create(pimcore.plug
184
193
185
194
_updateActionBtns : function ( actionBtnsPanel , item ) {
186
195
187
- actionBtnsPanel . items . removeAll ( ) ; //do not remove them as it causes flickering
188
- actionBtnsPanel . update ( ) ;
196
+ actionBtnsPanel . items . removeAll ( ) ; //do not remove them as it causes flickering
197
+ actionBtnsPanel . update ( ) ;
189
198
190
199
if ( item . actionItems . length ) {
191
200
for ( let i = 0 ; i < item . actionItems . length ; i ++ ) {
@@ -208,7 +217,7 @@ pimcore.plugin.processmanager.window.activeProcesses = Class.create(pimcore.plug
208
217
209
218
_updatePanelTitle : function ( data ) {
210
219
if ( this . toast ) {
211
- // let title = t('plugin_pm_process_list_title') + ' <small id="processManagerActiveText">(' + data.active +' from ' + data.total +' active)</small> ';
220
+ // let title = t('plugin_pm_process_list_title') + ' <small id="processManagerActiveText">(' + data.active +' from ' + data.total +' active)</small> ';
212
221
//this.toast.setTitle(title);
213
222
//do not use setTitle as it causes scrolling
214
223
let el = document . getElementById ( 'processManagerActiveText' ) ;
@@ -255,6 +264,7 @@ pimcore.plugin.processmanager.window.activeProcesses = Class.create(pimcore.plug
255
264
title : t ( 'plugin_pm_process_list_title' ) + ' <small id="processManagerActiveText"></small>' ,
256
265
width : 700 ,
257
266
autoScroll : false ,
267
+ animate : false ,
258
268
maxHeight :400 ,
259
269
autoShow : true ,
260
270
closeAction : 'hide' , //do not destroy as we get errors when panel disappears and a new process is started - seems to be a bug in Ext.Toast
0 commit comments