File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -311,7 +311,12 @@ function getSelectedItems() {
311311}
312312
313313// ── Placeholder dimensions (2:3 or 3:2 depending on orientation) ──
314- function placeholderSize ( orientation ) {
314+ function placeholderSize ( orientation , useFullSize ) {
315+ // useFullSize: generate realistic pixel dimensions for auto-canvas templates
316+ if ( useFullSize ) {
317+ if ( orientation === 'horizontal' ) return { width : 3600 , height : 2400 , _placeholder : true } ;
318+ return { width : 2400 , height : 3600 , _placeholder : true } ;
319+ }
315320 if ( orientation === 'horizontal' ) return { width : 3 , height : 2 , _placeholder : true } ;
316321 return { width : 2 , height : 3 , _placeholder : true } ;
317322}
@@ -343,12 +348,12 @@ function render() {
343348 if ( t . imageCount >= 2 ) {
344349 orient = ( t . layout === 'stacked' ) ? 'horizontal' : 'vertical' ;
345350 } else if ( t . canvasMode === 'auto' ) {
346- orient = 'vertical' ; // default placeholder for auto-canvas
351+ orient = 'vertical' ;
347352 } else {
348353 orient = t . canvas . height > t . canvas . width ? 'vertical' :
349354 t . canvas . width > t . canvas . height ? 'horizontal' : 'vertical' ;
350355 }
351- slots . push ( placeholderSize ( orient ) ) ;
356+ slots . push ( placeholderSize ( orient , t . canvasMode === 'auto' ) ) ;
352357 }
353358 }
354359
You can’t perform that action at this time.
0 commit comments