We will be doing maintenance work on Vivaldi Translate on the 11th of May starting at 03:00 (UTC) (see the time in your time zone).
Some downtime and service disruptions may be experienced.
Thanks in advance for your patience.
HTML5/eHTML5 windows opened in new tab have small dimensions
-
Hi,
I've filled bug (VB-83452) HTML5/eHTML5 windows opened in new tab have small dimensions.
Actually I see that wrote it incorrectly, new tab -> new window.
I'm managing hundreds of DELL servers, where iDRAC can open HTML5 Virtual Console in new window. The opened window is always in small dimensions. Chromium Edge opens window in proper dimensions. Unfortunately I do not have any public website which can open some window in new tab. If somebody knows such website, so Vivaldi devs could open it on their own, it will be good. I believe its a matter only of few lines to handle this issue.
-
@enc0re You had already tested with a fresh test profile without changing any settings and not adding extensions?
-
@enc0re Yes, Vivaldi has problems with the size of popups opened with javascript.
Example:
https://stian.w3spaces.com/Vivaldi-window-open-test.html<!DOCTYPE html> <html> <body> <p>Click the button to open a new browser window.</p> <button onclick="myFunction()">Try it</button> <script> function myFunction() { window.open("https://www.w3schools.com", "Test", width=800,height=600); } </script> </body> </html>
However, just adding the third argument as a string (as it should be) it seems to work:
https://stian.w3spaces.com/Vivaldi-window-open-test2.htmlTrying the same in Chrome or Chromium it behaves differently.
-
@pathduck As stated in https://developer.mozilla.org/en-US/docs/Web/API/Window/open#window_features the optional parameter has to be a string with comma-separated names=values, not a parameter list.
@enc0re Perhaps the iDRAC page does use bad Javascript code for
window.open
and violates JS web standards. -
@doctorg Yup, no difference.
Another observation is that new window opened by javascript is opened always on primary monitor, despite the main window is on secondary monitor.
In Chredge, if main window is on secondary window, then the popup window is opened also on secondary window.
-
@doctorg Tested right now with Firefox, opened with correct window size and on same display as is main window from it was executed.
-
@doctorg said in HTML5/eHTML5 windows opened in new tab have small dimensions:
As stated in https://developer.mozilla.org/en-US/docs/Web/API/Window/open#window_features the optional parameter has to be a string with comma-separated names=values, not a parameter list.
True, but if it works as users expect in the other browsers and specifically Chromium then I think Vivaldi is doing something wrong. After all, I can't imagine Vivaldi does changes to the V8 engine from Chromium?
Actually Firefox seems to take a pragmatic approach, it opens a maximized window instead of a tiny one like Vivaldi does.
-
@pathduck I do not know, but you can not blame Vivaldi for using with the correct syntax and other bad web developers creating shitty code which works because many browser guess what such web deveopers want to get.
But feel free to report the window open issue to bug Vivaldi tracker.
-
I ask internally about window.open and Vivaldi. Stay tuned… if i do not respond here in a few hours, please ping me.
-
@doctorg You know now, that DELL iDRAC uses wrong syntax?
I made some tests with browsers on my company notebook.
Primary screen is notebook inbuilt 1920x1080, secondary is 2560x1080. Browsers are running on secondary screen.Chrome
- opens window on secondary monitor, cascaded with primary window
- window size: depends on primary window size, but doesn't go below 987x865px
Edge
- opens window on secondary monitor, cascaded with primary window
- window size: depends on primary window size, but doesn't go below 1048x977px
Firefox
- opens window on secondary monitor, cascaded with primary window
- window size: it always opens with size of parent browser window
Vivaldi
- opens on primary monitor
- window size: 500x300px
-
@doctorg Cool.
-
@enc0re Thanks for your test!
I suggested in internal chat to use better default sizes derived from parent window. But did not have got any reply from a dev.
-
@doctorg Any reply?
-
@enc0re No reply yet.
-
Any news about it? I think I will be regularly asking here every 2,3 weeks.
-
@enc0re No progress.
-
Coming back after almost month. Could you ask internally again?
-
@enc0re I will try.
-
@enc0re Had you already tested with 5.0.2497.20?
Try test case at https://jsfiddle.net/ogt3mhan/
Gives for me a a larger popup now in 5.0 RC2 Stable compared to very small one of 4.2.2406.54!//edit: I close the bug report now, if you think your issue is not solved, please contact me by chat or leave a comment here.
-
I've tested .18, yes its better now.
It looks like that popup dimensions is ~75% of desktop resolution width and ~73% of desktop resolution height. IMO 75% for width is too much and 73% too lesss. As I'm only complaing about it, for me ideal would be ~58-60% for width and ~80% for height.However it looks like that solution is not properly tested.
Popup window position is taken from main window from where it was executed and only once, when it was started. It doesn't reflect to which monitor is main window moved.
If I Start Vivaldi on main window, then move it to secondary window and open popup, in my case iDRAC Virtual Console window, it is shown on primary monitor where primary window was started. This is bad.To open popup window on secondary monitor, I need to open any file manager, for example, Windows Explorer, navigate on filesystem and run Vivaldi from there. This way the browser starts on secondary monitor (it is weird because window should remember its last position, but thats other thing here). And now the popup window will open on secondary monitor. Now, if I move main window to primary monitor and open popup window, it will open on secondary monitor and not on primary.
This is useless, because usually Vivaldi is pinned on primary monitor, either taskbar or start or desktop.
So, the bug is fixed, lets say from 1/2, but I would say from 1/3 because of that popup window dimensions.
Definitely must be fixed the positioning. Other browsers do it correctly as I wrote in first post. After click on link/button which will open popup window, it must find out on which monitor the main browser window is present.