Skip to main content
JIta.1
Visitor II
March 31, 2020
Solved

Cacheable Container does not work when Display Orientation is Landscape and WIDTH < HEIGHT

  • March 31, 2020
  • 2 replies
  • 2780 views

I have attached a very simple Application to show the problem with the Cacheable Container.

I have a Display with a Resolution of 480x320. The Display is naturally in Portrait mode, but we use it Landscape, so I have set in the Display configuration the Width to 320 and the Height to 480.

In this configuration if the cache functionality of the CacheableContainer is enabled the whole container is just black. If I disable the cache functionality the Container shows what it should.

When I now invert the Display configuration to width=480 and height=320, the Cacheable Container works.

Am I missing something here ?

Thanks for helping

This topic has been closed for replies.
Best answer by Martin KJELDSEN

It's in 4.16.0 - We missed the changelog update, though.

/Martin

2 replies

Martin KJELDSEN
Principal III
March 31, 2020

Hi,

Let me look into this,

/Martin

JIta.2
Visitor II
August 25, 2020

Is there an update on this issue?

Martin KJELDSEN
Principal III
September 7, 2020

Hi, yes, it was confirmed that there is an issue with Cacheable container when rotation is used. I must be honest and say i completely forgot about this because i confused it with another W < H issue with a widget that used the texturemapper

I'll return to this thread with a temprary fix while i get the change into one of the coming releases. Probably not 4.15.0 because its getting close.

/Martin

scottSD
Senior III
April 14, 2021

@Martin KJELDSEN​ 

Could this also be an issue for the bitmap painters? (PainterRGB565Bitmap or PainterRGB565L8Bitmap) ? I am seeing a similar issue when painting an image into a Circle.

I am not placing it in a cacheable container, but just on the screen.

scottSD
Senior III
April 14, 2021

I should mention that the issue is not that the images are getting messed up, but they are in the incorrect location when using the painter and the native orientation is portrait (width is 240 and height is 320) and the Display Orientation setting is set to Landscape. If I use a color-fill painter on the circle the placement of the circle is correct.

I am using the painter in code. What is peculiar is that when I change the width of the box of the circle in code (but not the X position), this actually moves the image being painted on the circle. This is NOT what typically happens when changing the width of the circle in the Designer. It is almost as if the x position is being effected by the width setting.

Any input would be appreciated......