Share

KYum

Tracker: Bugs

5 Kyum starts too wide, won't resize - ID: 1867949
Last Update: Comment added ( mnoguchi )

When kyum is brought up on a small (800x600) display the window is wider
than the display, and frequently taller as well. The height can be resized
in the usual way by dragging the top or bottom edge, but the all attempts
to resize the width fail. The cursor changes to a double-headed arrow, but
the edge will not drag.

This has been observed on several different laptops, running either Fedora
Core 6 or Fedora 7, with both Gnome and KDE window managers.


Richard Wurth ( rwurth ) - 2008-01-09 21:40

5

Open

None

Nobody/Anonymous

None

None

Public


Comment ( 1 )




Date: 2008-10-06 22:23
Sender: mnoguchi

I created the following patch to fix this problem:

Index: src/ActionsView.cpp
===================================================================
RCS file: /cvsroot/kyum/kyum/src/ActionsView.cpp,v
retrieving revision 1.6
diff -u -r1.6 ActionsView.cpp
--- src/ActionsView.cpp 31 Dec 2005 17:57:07 -0000 1.6
+++ src/ActionsView.cpp 6 Oct 2008 22:16:03 -0000
@@ -415,9 +415,8 @@
QFontMetrics fm(m_pSelectionInfo->font());
m_pSelectionInfo->setMinimumWidth(fm.width(strSampleInfo));

- pInfoPanelLayout->addSpacing(25);
+ pInfoPanelLayout->addSpacing(2);
pInfoPanelLayout->addWidget(m_pSelectionInfo);
- pInfoPanelLayout->addSpacing(25);

m_pListView = 0; // To avoid crash in updateSelectionInfo()
updateSelectionInfo();
@@ -440,10 +439,16 @@
/*
QSpacerItem * pHSpacer = new QSpacerItem(60, 0,
QSizePolicy::Expanding, QSizePolicy::Maximum);
*/
- pHLayout->addWidget(m_pButtonSelectAll);
- pHLayout->addWidget(m_pButtonDeselectAll);
+ QVBoxLayout * pSelectLayout = new QVBoxLayout(pHLayout, 2);
+ QHBoxLayout * pSelectButtonLayout = new QHBoxLayout(pSelectLayout,
2);
+
+ pSelectButtonLayout->addWidget(m_pButtonSelectAll);
+ pSelectButtonLayout->addWidget(m_pButtonDeselectAll);
+ pSelectButtonLayout->addStretch();
+
+ pSelectLayout->addWidget(pSelInfoPanel);
+
// pHLayout->addItem(pHSpacer);
- pHLayout->addWidget(pSelInfoPanel);
pHLayout->addWidget(m_pLabelFindInList);
pHLayout->addWidget(m_pEditFindInList);
pHLayout->addWidget(m_pButtonFindPrevInList);


Log in to comment.

Attached File

No Files Currently Attached

Change

No changes have been made to this artifact.