Giter Site home page Giter Site logo

Comments (6)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
I dont have any non-english titled tracks. Could you provide a screenshot of 1 
the above tracks when the interface is expanded? How many pixels do you /think/ 
are missing?

The current font-metrics are taken into account when determining the collapsed 
size.

Could you try editing gui/mainwindow.cpp and change line 2440 from:

----------------------8<------------------------
        compactHeight=qMax(qMax(playPauseTrackButton->height(), trackLabel->height()+artistLabel->height())+
----------------------8<------------------------

to 

----------------------8<------------------------
        compactHeight=qMax(qMax(playPauseTrackButton->height(), trackLabel->height()+artistLabel->height()+spacing)+
----------------------8<------------------------

Does this help at all???

Original comment by [email protected] on 14 Jun 2012 at 7:38

  • Added labels: Priority-Low
  • Removed labels: Priority-Medium

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Expanded interface is fine as below.
Adding '+spacing' to gui/maiwindow.cpp doesn't fix the problem!

Original comment by [email protected] on 14 Jun 2012 at 7:52

Attachments:

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
This is, again, a style issue. For some reason the Gtk+ Qt style is giving a 
spacing value of -1 when queried.

Try editing gui/mainwindow.cpp and changing from (line 2438):

----------------------8<------------------------
        int spacing=style()->layoutSpacing(QSizePolicy::DefaultType, QSizePolicy::DefaultType, Qt::Vertical);
        // For some reason height is always larger than it needs to be - so fix this to cover height +4
        compactHeight=qMax(qMax(playPauseTrackButton->height(), trackLabel->height()+artistLabel->height())+
                           songTimeElapsedLabel->height()+positionSlider->height()+(spacing*3),
                           coverWidget->height()+spacing);
----------------------8<------------------------

to:

----------------------8<------------------------
        int spacing=style()->layoutSpacing(QSizePolicy::DefaultType, QSizePolicy::DefaultType, Qt::Vertical);
        if (spacing<0) {
            spacing=4;
        }
        // For some reason height is always larger than it needs to be - so fix this to cover height +4
        compactHeight=qMax(qMax(playPauseTrackButton->height(), trackLabel->height()+artistLabel->height()+spacing)+
                           songTimeElapsedLabel->height()+positionSlider->height()+(spacing*2),
                           coverWidget->height()+spacing);
----------------------8<------------------------

This seems to resolve the issue for me

Original comment by [email protected] on 14 Jun 2012 at 8:08

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Yes, now it works fine for Korean, Japanese and probably Chinese!

Thanks as always.

Original comment by [email protected] on 14 Jun 2012 at 8:22

from cantata.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Fixed in r1238

Original comment by [email protected] on 14 Jun 2012 at 7:09

  • Changed state: Fixed

from cantata.

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.