Skip to content

Commit

Permalink
Ceil size because ext ceils numbers somwhere in Anchor layouts leadin…
Browse files Browse the repository at this point in the history
…g to annoying scrollbars because items where half a pixel wider than the container.
  • Loading branch information
mschering committed Aug 30, 2024
1 parent 7da89e6 commit 93aece0
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion www/views/Extjs3/javascript/overrides.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,12 @@ Ext.override(Ext.form.TimeField, {
*/
GO.util.density = GO.util.isMobileOrTablet() ? 160 : 140;
function dp(size) {
return ((size * GO.util.density) / 160);
size = ((size * GO.util.density) / 160);
if(size > 20) {
return Math.ceil(size);
} else {
return size;
}
}
/*
*When upgrading extjs don't forget to check htmleditor overrides in E-mail composer
Expand Down

0 comments on commit 93aece0

Please sign in to comment.