소스 검색

fix some resize behaviour

Scrublord1336 6 년 전
부모
커밋
fe2794903e
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 )
          {