Browse Source

Fix editor UI resolution detection for whether to lay out the status text on 1 or 2 rows.

Lasse Öörni 8 years ago
parent
commit
f413945c98
1 changed files with 1 additions and 1 deletions
  1. 1 1
      bin/Data/Scripts/Editor/EditorView.as

+ 1 - 1
bin/Data/Scripts/Editor/EditorView.as

@@ -1266,7 +1266,7 @@ void UpdateStats(float timeStep)
 
 
     if(viewportMode != VIEWPORT_COMPACT)
     if(viewportMode != VIEWPORT_COMPACT)
     {
     {
-	if (graphics.width >= editorModeText.size.x + renderStatsText.size.x + 45)
+	if (ui.root.width >= editorModeText.size.x + renderStatsText.size.x + 45)
 	{
 	{
             SetupStatsBarText(editorModeText, font, 35, 64, HA_LEFT, VA_TOP);
             SetupStatsBarText(editorModeText, font, 35, 64, HA_LEFT, VA_TOP);
             SetupStatsBarText(renderStatsText, font, -4, 64, HA_RIGHT, VA_TOP);
             SetupStatsBarText(renderStatsText, font, -4, 64, HA_RIGHT, VA_TOP);