I am using version 3.14 Patch 4 with the Android mobile UI application runing on a Samsung Galaxy Tab S (SM-T800) with Android version 5.0.2 Kernel version 3.4.9-6522999.
As documented in the Mobile UI help, I setup a simple custom Panel Topology template with a mainModule and an infoModule. I then configured my Panel Topology with just two panels to be displayed in the mainModule.
Automatic scaling does not seem to work correctly for panels displayed in the mainModule. I've tried all the various styles supported by the setScaleStyle() function. The panels never scale to fit the mainModule properly. They are usually too wide. One panel I am trying to display, if scaled to fit horizontally, is about 4-5 times taller than the mainModule. I have added a fixed vertical scroll bar to handle this. It works.
So, I have now set the scale style to SCALE_NONE and forced the module zoom factor to fit the panel horizontally to the module. However, the factor I had to use to make it look right did not mathematically make sense. It was 2.2 times bigger than I calculated given the horizontal size of the panel and the mainModule. However, this seemed to work for the past week so I left it like that.
Then seemingly unrelated to anything else I was touching today, the fixed scaling stopped working correctly. The scaling for the login screen stopped working and it is now displaying the login panel 1 to 1. It's tiny. Once I log in, the panels displayed in the mainModule are now about 15%-20% too big. I have not touched the panel topology or the config file. Why did this change?
Also, scaling for the text in multi-line text field graphic object works until you type in a space and then is begins to display the text in 1x1 scale. It's very small on an Android tablet screen. This is very consistent.
I have a pretty complex report application running on this Android Mobile UI now. It seems relatively stable. However, scaling has been problematic since day one. Is this a known issue?
Mobile UI for Android scaling problems
- olduser4428
- Posts:3
- Joined: Thu Jan 01, 1970 1:00 am
Re: Mobile UI for Android scaling problems
Hello,
this problem is not yet known to us. In order to analyze the issue further, I kindly ask you to upload/send me a sample panel or a sample project.
Best Regards
Alexander Taker
this problem is not yet known to us. In order to analyze the issue further, I kindly ask you to upload/send me a sample panel or a sample project.
Best Regards
Alexander Taker
- johna_ssa
- Posts:21
- Joined: Wed Jan 28, 2015 6:14 pm
Re: Mobile UI for Android scaling problems
Thanks for the quick response.
The multi-line text field is easy to recreate. Just put one on a panel and start typing into it. Once you type a space, the scaling of the text shrinks on an Android tablet. The same panel works fine on the PC.
I'll have to create a new panel topology project to demonstrate the panel scaling issue in the mainModule of a Panel Topology project. My current project is too big and complex to share. It will likely be a couple days before I can do that. I am currently working on a customer demo for tomorrow.
BTW, the scaling on my current project has changed yet again. It appears to have changed back to the old scaling. So, it's kinda working for now.
The multi-line text field is easy to recreate. Just put one on a panel and start typing into it. Once you type a space, the scaling of the text shrinks on an Android tablet. The same panel works fine on the PC.
I'll have to create a new panel topology project to demonstrate the panel scaling issue in the mainModule of a Panel Topology project. My current project is too big and complex to share. It will likely be a couple days before I can do that. I am currently working on a customer demo for tomorrow.
BTW, the scaling on my current project has changed yet again. It appears to have changed back to the old scaling. So, it's kinda working for now.
- olduser4428
- Posts:3
- Joined: Thu Jan 01, 1970 1:00 am
Re: Mobile UI for Android scaling problems
I will examine the problem with the multi-line text field.
Although the scaling is working again, would it be still possible to send us a demo project? Because with the project we can analyze and eliminate the bug before it should occur again. Than we also can check the behavior of the SetScaleSytle() function.
Anyway, thank you for your efforts in advance.
Although the scaling is working again, would it be still possible to send us a demo project? Because with the project we can analyze and eliminate the bug before it should occur again. Than we also can check the behavior of the SetScaleSytle() function.
Anyway, thank you for your efforts in advance.
- ottemot
- Posts:13
- Joined: Wed Dec 02, 2015 2:30 pm
Re: Mobile UI for Android scaling problems
I have a very similar issue with the Android app. The problem is that a root panel for an embedded module (such as the main module if you use the panel topology) is zoomed in during initialization. If I zoom all the way out by pinching, it returns to normal. Furthermore, I use nested modules (the root panel itself has an embedded module) and I've noticed that this issue can happen with the nested modules as well. Exiting and return to the app usually fixes the issue. It is very consistent though.
I use addSymbol() a lot to fill the root panels with panel refs depending on what the user wants to see. Since the number of panel refs are unknown until runtime, I've used setPanelSize() extensively to make the root panel fit its content. I however suspect that setPanelSize() or something related to it is the cause of the zooming bug. If I predetermine the panel size (i.e. don't use setPanelSize()), the root panel never initializes in a zoomed in state. I've tried all combinations of setScaleStyle(), nothing but setPanelSize() seems to affect the problem.
The weird thing is that the setPanelSize() issue only happens on touch devices. I have no issues when running it on a desktop, but if I connect to the project either through the Android app or use a Windows tablet and create a Remote UI project the issue appears.
So I'm not entirely sure if it's an Android app issue, but rather an issue when using a remotely connected device and/or a device with touch input.
And while on the topic of modules and pinch-to-zoom, is there anyway to disable pinch-to-zoom in a module?
I use addSymbol() a lot to fill the root panels with panel refs depending on what the user wants to see. Since the number of panel refs are unknown until runtime, I've used setPanelSize() extensively to make the root panel fit its content. I however suspect that setPanelSize() or something related to it is the cause of the zooming bug. If I predetermine the panel size (i.e. don't use setPanelSize()), the root panel never initializes in a zoomed in state. I've tried all combinations of setScaleStyle(), nothing but setPanelSize() seems to affect the problem.
The weird thing is that the setPanelSize() issue only happens on touch devices. I have no issues when running it on a desktop, but if I connect to the project either through the Android app or use a Windows tablet and create a Remote UI project the issue appears.
So I'm not entirely sure if it's an Android app issue, but rather an issue when using a remotely connected device and/or a device with touch input.
And while on the topic of modules and pinch-to-zoom, is there anyway to disable pinch-to-zoom in a module?
- olduser4428
- Posts:3
- Joined: Thu Jan 01, 1970 1:00 am
Re: Mobile UI for Android scaling problems
Hello,
Thanks for the hint. We will take care of the problem.
If an embedded modules (or maximized / fullscreen module window) has an different scaleStyle than SCALE_ZOOM, pinch-to-zoom shouldn’t be possible. (version: 3.14.3 or higher)
Best Regards
Alexander Taker
Thanks for the hint. We will take care of the problem.
If an embedded modules (or maximized / fullscreen module window) has an different scaleStyle than SCALE_ZOOM, pinch-to-zoom shouldn’t be possible. (version: 3.14.3 or higher)
Best Regards
Alexander Taker