Giter Site home page Giter Site logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Strange, it doesn't do that for me (Ubuntu/Gnome, Hardy Heron, x86) -- the 
window fits neatly between the top 
and bottom panel areas. (There are issues with windows overlapping slightly in 
the center of the screen, but 
vertically they fit fine.)

Window size and positioning needs a bunch of attention anyhow, but I'm 
surprised that we see different behavior 
on this particular issue.

Original comment by [email protected] on 10 Jul 2008 at 2:41

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
As described in http://doc.trolltech.com/4.4/geometry.html the window managers
working under X11 decorate (i.e. add frames, etc.) asynchronously. Hence the 
exact
window size (including the frame) is not known at the time the windows are 
positioned
and resized (when the window is created). Note that the windows should be placed
correctly if the positioning function is invoked manually from the menu after 
the
window is fully displayed.
(Couriously, I have to call TWUtils::zoomToHalfScreen() twice for PDF views; 
after
the first call the window is resized correctly but not positioned correctly)

I've attached a patch that should work around this issue by estimating the frame
border width by the frame border width of an MDI window (which is exposed via
QStyle::pixelMetric()). It works fine for me on Ubuntu 8.10 / Gnome 2.24.1.

This may solve the screen height problem as well as the border is also taken 
into
account for the calculation of the height. Note that at least on my 
installation, the
window seemed to snap to the panel bars / window width within certain limits. 
This
could explain why the window height was correct on some systems and wrong on 
others.

Original comment by st.loeffler on 6 Jan 2009 at 12:43

Attachments:

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
[deleted comment]

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
I just found that, when enabling visual effects in Ubuntu, the TW window 
(regardless
of my last patch) aligns neatly with the top panel, but extends beneath the 
bottom
panel. When disabling the visual effects everything behaves as it should 
regarding
the top/bottom panels.

Tested on Ubuntu 8.10 (Intrepid), with Gnome 2.24.1

Original comment by st.loeffler on 14 Apr 2009 at 9:37

from texworks.

GoogleCodeExporter avatar GoogleCodeExporter commented on July 22, 2024
Thanks for this! That probably explains why some people see this problem while 
others on apparently similar 
systems don't have them. I hadn't realized this was a critical factor, so this 
is great information.


Original comment by [email protected] on 14 Apr 2009 at 10:55

from texworks.

stloeffler avatar stloeffler commented on July 22, 2024

This issue pertains to a long-outdated version of TeXworks and Qt. Therefore it will be closed for now. Should the issue persists in the latest version, it can be reopened of course.

from texworks.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.