luoyifan před 3 roky
rodič
revize
a341541818
2 změnil soubory, kde provedl 10 přidání a 2 odebrání
  1. 3 1
      src/Defaults.ts
  2. 7 1
      src/Scope.ts

+ 3 - 1
src/Defaults.ts

@@ -48,7 +48,9 @@ export const text = {
     labelWidth: 70,
 }
 
-export const toolbar = {}
+export const toolbar = {
+    overflowHandler: 'menu',
+}
 
 export const tbfill = {}
 

+ 7 - 1
src/Scope.ts

@@ -101,6 +101,12 @@ export class Scope {
 
         }, vjsonOption, that.vjson, windows)
 
+        if (config.height === 'unset') {
+            delete config.height
+        }
+        if (config.width === 'unset') {
+            delete config.width
+        }
         const win = new Ext.Window(config);
         const holder = sender?.lookupReferenceHolder()
         if (holder) {
@@ -194,7 +200,7 @@ export class Scope {
 
     reRender() {
         this.vjson = this.buildVjson()
-        this.showPage(this._vjsonOption,this._dataOption, true)
+        this.showPage(this._vjsonOption, this._dataOption, true)
     }
 
     /**