Fix font slot align

This commit is contained in:
Lubos Lenco
2021-08-03 14:44:23 +02:00
parent a94a0853ce
commit 1ae19b32b3
+2 -1
View File
@@ -25,8 +25,9 @@ class TabFonts {
ui.endSticky();
ui.separator(3, false);
var statusw = kha.System.windowWidth() - UIToolbar.inst.toolbarw - Config.raw.layout[LayoutSidebarW];
var slotw = Std.int(51 * ui.SCALE());
var num = Std.int(Config.raw.layout[LayoutSidebarW] / slotw);
var num = Std.int(statusw / slotw);
for (row in 0...Std.int(Math.ceil(Project.fonts.length / num))) {
var mult = Config.raw.show_asset_names ? 2 : 1;