Odd.
Ran a few more tests and this caught my eye:
On Windows, if I run the xnview.exe file 'directly' or use the
context menu (shell integration "PATHTO\XnViewMP\xnview.exe "%1"" or custom method like "PATHTO\XnViewMP\xnview.exe "%V"" - see EDIT >
http://newsgroup.xnview.com/viewtopic.php?f=34&t=22890) will make the Path field behave differently!
-- EDIT: By "directly", I mean running only the XnViewMP application, without passing a file or folder as secondary parameter, so it opens at the chosen default path or last used path.
- Running the .exe directly = Path Field will occupy a width of around ~320px (will not resize beyond that, is this the expected behavior?)
- Running XnViewMP through the Context Menu shell integration (or example below) = Path Field will occupy a locked width of around ~130px (see images I posted before)
The same problem will also occur if you manually point the .exe to a file, i.e.
PATHTO\XnViewMP\xnview.exe D:\Image.jpg
That will open the image in the Viewer and once you go to
File > Browse, the Browse window will also have the Path Field in that small, locked width.
A temporary fix is to change themes, changing the theme will make the Path Field resize! It's only temporary, once you close XnViewMP and reopen it through the Context Menu, the problem will be back. See image (top= changed the theme; bottom= ran the .exe directly:
That may be what we were doing differently? Otherwise, I really can't see what else could be affecting this behavior.
Ah, on the other hand, the problem persists on my tests using the other platforms:
Running Mac
Snow Leopard OR
Ubuntu 12.04 on Virtual Box, the results are the same as I described before. Nothing I do here (changing layout or theme) changes the Path field behavior. Once the XnViewMP changes from 2 rows to 1 row to display the Filelist toolbar, the path field width gets locked in that small width.
EDIT:
Aaaaaaaaaaaaaaaaaaaaaaaahhhh..... well, further tests do not yield different results anymore. Now it only display that narrow Path Field when in single row mode. Already tried resetting all settings and starting clean... Dang, what an elusive problem.
EDIT2:
I give up.
Ended using the this code on
View > Theme > Dark Theme to make sure the Path Field expands to use more space:
Code: Select all
QComboBox{
height: 18px;
width: 800px;
}
SearchLineEdit{
height: 16px;
}
SearchLineEdit>QLineEdit{
height: 16px;
margin-bottom: 2px;
}