translate / virtaal

Easy-to-use and powerful offline translation tool
https://virtaal.translatehouse.org
GNU General Public License v2.0
300 stars 58 forks source link

Window width is unable to resize below 630 pixels #3318

Open scootergrisen opened 4 years ago

scootergrisen commented 4 years ago

In Windows 7 if i want to have 2 application split the screen i can drag the title bar to the left of the screen and the application will use half the screen.

But it seems Virtaal 0.7.1 have a fixed minimum width of 630 pixels.

So if the screen area is 1200 pixels and the other application take up 600 pixels Virtaal will take up 630 pixels instead of 600 pixels and overlap part of the other application window.

sneetsher commented 4 years ago

@scootergrisen Would you try edit virtaal.glade, change:

  <widget class="GtkWindow" id="MainWindow">
    <property name="width_request">620</property>

I presume it is not compiled and just loaded dynamically like in MacOS & GNU/* , see like here https://github.com/translate/virtaal/blob/8b0a6fbf764ed92cc44a189499dec399c6423761/share/virtaal/virtaal.glade#L6

You may set it auto too, -1

sneetsher commented 4 years ago

Not sure if GTK Inspector can be run in MS Windows? If may help testing it on real-time also try other inside widgets, then report best setup if worth for other users.

scootergrisen commented 4 years ago

i can use 1 to make the window small but -1 for sone reason lock the width in something like 2189 pixels which is wider then the screen resolution.

  <widget class="GtkWindow" id="MainWindow">
    <property name="width_request">1</property>
    <property name="height_request">1</property>