ui: ceph/osd: add a real fix for the window-not-centered issue

Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
Thomas Lamprecht 2019-07-23 13:47:36 +02:00
parent 844a81ba35
commit cd86360d69

View File

@ -170,9 +170,6 @@ Ext.define('PVE.CephSetFlags', {
showProgress: true,
width: 720,
// FIXME: hack, should be done "automatically" one your store got loaded + rendered
minHeight: 325,
layout: 'fit',
onlineHelp: 'pve_ceph_osds',
@ -247,6 +244,8 @@ Ext.define('PVE.CephSetFlags', {
grid.getStore().setData(data);
// set the put url correctly
me.url = "/nodes/" + me.nodename + "/ceph/flags";
// re-align after store load, else the window is not centered
me.alignTo(Ext.getBody(), 'c-c');
}
});
}