Skip to content

Commit 76819de

Browse files
committed
Increase the width of the formatting cell dialog github:15886
1 parent 3582de1 commit 76819de

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

Resources/scripts/custom-designer-functions.js

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,18 @@ customDesignerFunctions.init = function () {
243243
} catch (error) {
244244
console.warn("Add custom functions to the custom dynamic section: ", error.message);
245245
}
246-
246+
247+
template = GC.Spread.Sheets.Designer.getTemplate(TemplateNames.FormatDialogTemplate);
248+
try {
249+
if(template.content[0].width<720)
250+
{
251+
template.content[0].width = 720;
252+
}
253+
GC.Spread.Sheets.Designer.registerTemplate(TemplateNames.FormatDialogTemplate, template);
254+
} catch (error) {
255+
console.warn("Change format dialog width failed: ", error.message);
256+
}
257+
247258

248259
// todo localize stuff here?
249260
};

0 commit comments

Comments
 (0)