@@ -8305,8 +8305,10 @@ export class Niivue {
8305
8305
elevation = isRadiolgical ? - 90 : 90
8306
8306
}
8307
8307
const gl = this . gl
8308
+ let isStretchToScreen = false
8308
8309
if ( leftTopWidthHeight [ 2 ] === 0 || leftTopWidthHeight [ 3 ] === 0 ) {
8309
8310
// only one tile: stretch tile to fill whole screen.
8311
+ isStretchToScreen = true
8310
8312
const pixPerMMw = gl . canvas . width / screen . fovMM [ 0 ]
8311
8313
const pixPerMMh = gl . canvas . height / screen . fovMM [ 1 ]
8312
8314
const pixPerMMmin = Math . min ( pixPerMMw , pixPerMMh )
@@ -8465,6 +8467,10 @@ export class Niivue {
8465
8467
// no crossbars for mosaic view
8466
8468
this . drawCrosshairs3D ( false , 0.15 , obj . modelViewProjectionMatrix , true , this . opts . isSliceMM )
8467
8469
}
8470
+ if ( isStretchToScreen ) {
8471
+ // issue1065
8472
+ this . drawSliceOrientationText ( leftTopWidthHeight , axCorSag )
8473
+ }
8468
8474
this . readyForSync = true
8469
8475
}
8470
8476
@@ -8491,7 +8497,10 @@ export class Niivue {
8491
8497
if ( customMM === Infinity || customMM === - Infinity || axCorSag === SLICE_TYPE . RENDER ) {
8492
8498
return
8493
8499
}
8494
- this . drawSliceOrientationText ( leftTopWidthHeight , axCorSag , padLeftTop )
8500
+ if ( leftTopWidthHeight [ 2 ] !== 0 && leftTopWidthHeight [ 3 ] !== 0 ) {
8501
+ // issue1065
8502
+ this . drawSliceOrientationText ( leftTopWidthHeight , axCorSag , padLeftTop )
8503
+ }
8495
8504
}
8496
8505
8497
8506
// not included in public docs
0 commit comments