Преглед на файлове

Merge branch 'feature/resize_fix' into release/v2.11.0

Scrublord1336 преди 6 години
родител
ревизия
0ebb340f0f
променени са 1 файла, в които са добавени 2 реда и са изтрити 1 реда
  1. 2 1
      src/XUnity.AutoTranslator.Plugin.Core/TranslationInfo.cs

+ 2 - 1
src/XUnity.AutoTranslator.Plugin.Core/TranslationInfo.cs

@@ -31,7 +31,8 @@ namespace XUnity.AutoTranslator.Plugin.Core
 
       public void ResizeUI( object graphic )
       {
-         if( graphic == null ) return;
+         // do not resize if there is no object of ir it is already resized
+         if( graphic == null || _reset != null ) return;
 
          if( graphic is Text )
          {