Media display bug when (mediaOptions != 'Crop')

Hi,

When setting mediaOptions to reduce/enlarge for an item displaying an image from servoy graphic library, when the item has a onRollOver image, the image disappears when you rollOver the button/label.

Replication of bug:

  • just go to crm navigation form, set any btn mediaOptions property to Reduce/Enlarge, use the modified solution and watch buttons when hovering them :!:

May be a recent bug

Hi Olivier,

Servoy Developer
Version R2 2.1.1 b1-build 311
Java version 1.4.2-38 (Mac OS X)

Can’t reproduce this behaviour using the opening list screen on CRM and modifying the ‘Reload’ button to reduce/enlarge !!

However all done and viewed under developer and not through a client !!

Harry

Thank you Harry,

But your test does not meet the conditions where the bug appears:

The default image of the reload button is NOT changed by a method, so there is no reason that the bug appears. If you try it as stated in my first post, you can see that the bug is present. Sorry to have been too lazy to report all conditions…

BTW, I took the time to check on Mac and on WinXPpro, and the bug is the same on both platforms.

To make it clear, it happens on buttons who have an image attached, a rollOver image attached, the mediaOptions set to Reduce/Enlarge (Keep aspect ratio is not relevant [for the bug]) AND you change the default image by using method ‘setImageURL…’. The bug does not appear when mediaOptions is set to Crop as it is in the navigation controller from crm.

Can a servoy representative check this please?

On Macintosh: R2 2.1.1 b1 - build 311; Java 1.4.2-38
On Windows XP: R2 2.1.1 b1 - build 310; Java 1.4.2_05 b04

Replication of bug:

  • just go to crm navigation form, set any btn mediaOptions property to Reduce/Enlarge, use the modified solution and watch buttons when hovering them

To be more precise: read go to crm, on the form named “Navigation”, which is a custom controller…

there where some problems with flushing the images to eager.
i have fixed this for 2.1.1

:D Many thanks Johan!