Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » DISPLAY_STYLE_BENCH(Another beginner question about Bench desktop style)
DISPLAY_STYLE_BENCH [message #1849597] Wed, 26 January 2022 14:01 Go to next message
Oleg Zhuravlev is currently offline Oleg ZhuravlevFriend
Messages: 8
Registered: January 2022
Junior Member
Hello everyone, sorry for the possibly stupid question, but when I set
protected String getConfiguredDisplayStyle() {
	return DISPLAY_STYLE_BENCH;
}

for Desktop class,

in Windows browsers page looks great: only navigate buttons on top and the form itself - what i wanted to achieve.

But on mobile (userAgent=HTML|MOBILE|CHROME|ANDROID|Mozilla/5.0 (Linux; Android 10; SAMSUNG SM-M515F) AppleWebKit/537.36 (KHTML, like Gecko) SamsungBrowser/15.0 Chrome/90.0.4430.210 Mobile Safari/537.36) everything is different, it feels like what I see is DISPLAY_STYLE_DEFAULT

The real question is how to achieve DISPLAY_STYLE_BENCH on mobile devices.
Re: DISPLAY_STYLE_BENCH [message #1849602 is a reply to message #1849597] Wed, 26 January 2022 14:51 Go to previous messageGo to next message
Claudio Guglielmo is currently offline Claudio GuglielmoFriend
Messages: 255
Registered: March 2010
Senior Member
Hi Oleg,

when the app runs on a mobile device, there are several transformations applied to optimize the appearance and behavior. One of the transformations affects the display style of the desktop, it will automatically be set to compact, see here.

You can disable all or individual transformations by replacing the MobileDeviceTransformer. Please see here for details.

Best regards
Claudio
Re: DISPLAY_STYLE_BENCH [message #1849627 is a reply to message #1849602] Thu, 27 January 2022 08:38 Go to previous message
Oleg Zhuravlev is currently offline Oleg ZhuravlevFriend
Messages: 8
Registered: January 2022
Junior Member
oh thanks, just what i need
Previous Topic:Tile Widget Example
Next Topic:One Day Tutorial stuck on first Launch
Goto Forum:
  


Current Time: Thu Feb 29 22:19:51 GMT 2024

Powered by FUDForum. Page generated in 0.02258 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top