working on label image resize fix

This commit is contained in:
paul
2025-03-31 20:38:25 +05:30
parent bdd3bab3a5
commit a38cd90c16
10 changed files with 3611 additions and 1315 deletions

View File

@@ -574,11 +574,13 @@ export class CustomTkBase extends Widget {
let expandValue = expand ? (isSameSide ? previousExpandValue : widgets.length - index) : 1;
if ((expand && previousExpandValue === 0) || (expand && expandValue === 0)){
if (expand && expandValue === 0){
expandValue = 1 // if there is expand it should expand
}
if (expand && !isSameSide) previousExpandValue = expandValue;
if ((expand && !isSameSide) || (expand && previousExpandValue === 0)){
previousExpandValue = expandValue;
}
lastSide = side; // Update last side for recursion