Open mobileWMS opened 5 years ago
Any status on this? Any work around? Since I don't really understand the problem, I don't know how to work around it.
I made some demo apps based on the examples from here. What I did was the following:
So in theory the two applications should be the same, except for MPR stuff.
Display settings: here
Pure vaadin 7 version:
MPR version:
Note on above code examples: I ran mvn clean
before zipping so they would not be too big.
Same thing happens when I upgraded to 14.1.17, see my project.
@pleku , since you marked this as low impact and minor severity, maybe you know of a workaround? Because it is almost a show stopping issue in our case, as you can see from my example code. Yes, users can still use the site, but it is very confusing and potentially dangerous as vertical scroll bars tied to a table or grid could be off the edge once the download completes ( under browser vertical scrollbar ). Definitely not attractive, so even a band-aide would help. Thanks.
What is the status of this? I linked an example project, so in theory you should have a decent test case. I don't currently use MPR, but we might need to in the next year as we restart the upgrade to Vaadin 14, so wanted to followup on this.
I have a weird problem with my MPR + Vaadin 7 app. When I click "Download Csv" button to initiate a CSV file download, it resizes the screen incorrectly. What it does wrong is add vertical and horizontal scrollbars. With my pure Vaadin 7 app, it does not do this.
The biggest difference between the two versions is that in MPR + Vaadin 7 branch of the code, I have to pass the flow UI and VaadinSession to the FileDownloader implementation because some lower level code that talks to another service that produces the file we want to download needs the UI and VaadinSession.
I suppose it could be a style or CSS or theme issue. As such, I use a custom theme derived from the Valo theme. Here are some annotations attached to my root Route ( the part that wraps the Vaadin 7 code, as per the MPR documentation ):
Custom FileDownloader:
And here is a snippet of how it is used in the code:
Images:
Vaadin 7 before download: here Vaadin 7 after download: here MPR + Vaadin 7 before download: here MPR + Vaadin 7 after download: here
Full discussion is here. This is using the following version info: Vaadin Platform version: 14.0.7 Vaadin 7 version: 7.7.17 Flow Version: 2.0.14 OS(s) that run the WAR file: windows 10 ( Eclipse and Jetty ) and CentOS ( Tomcat ) OS and Browser where I run the test: Windows 10 using Chrome and Edge ( above images are from Chrome )