mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-15 20:44:28 +01:00
Home WIP: Fix changing portlet width would not stick for some types
This commit is contained in:
parent
3810e0ec42
commit
74201b1a21
@ -181,7 +181,21 @@ export class Et2Portlet extends Et2Widget(SlCard)
|
||||
*/
|
||||
transformAttributes(attrs)
|
||||
{
|
||||
// Pull out width - super will handle it wrong then remove it
|
||||
let width
|
||||
if(typeof attrs.width != "undefined")
|
||||
{
|
||||
width = attrs.width;
|
||||
delete attrs.width;
|
||||
}
|
||||
|
||||
super.transformAttributes(attrs);
|
||||
|
||||
// If width was provided, put it back
|
||||
if(typeof width != "undefined")
|
||||
{
|
||||
attrs.width = width;
|
||||
}
|
||||
let data = this.getArrayMgr("content").data.find(e => e.id && e.id == this.id) || {};
|
||||
this.settings = typeof attrs.settings == "string" ? data.value || data.settings || {} : attrs.settings;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user