Bug 72533

Summary: Editor view isn't resized
Product: quanta Reporter: Thomas Tanghus <thomas>
Component: generalAssignee: András Manţia <amantia>
Status: RESOLVED FIXED    
Severity: normal    
Priority: NOR    
Version: unspecified   
Target Milestone: ---   
Platform: unspecified   
OS: Linux   
Latest Commit: Version Fixed In:
Attachments: Shows the problem

Description Thomas Tanghus 2004-01-13 09:16:42 UTC
Version:           3.2 Bleeding Edge (2004-01-08) (using KDE 3.1.94 (CVS >= 20031206), compiled sources)
Compiler:          gcc version 3.3 20030226 (prerelease) (SuSE Linux)
OS:          Linux (i686) release 2.4.20-4GB

When selecting a file from the file tree the editor view isn't resized until the main window is resized.
When the same file is selected from the project tree it works fine.

I'll attach an image when I've finish the report.

kdelibs/quanta_be CVS HEAD 01/13/2004 - the rest of kde appr. 3 weeks old.
Comment 1 Thomas Tanghus 2004-01-13 09:18:10 UTC
Created attachment 4135 [details]
Shows the problem
Comment 2 András Manţia 2004-01-13 11:53:41 UTC
Subject: Re: Editor view isn't resized

How was you able to  get this? I saw similar case when starting Quanta, but 
after the loading of it finished, the editor was resized to the correct size. 
As you always must have an open editor view (even if it's an empty document), 
I don't have an idea how did you reached this state. Did you started Quanta 
for the first time? Does removing of the local quantarc help? You may even 
try an update of kdelibs/kate.

Comment 3 Thomas Tanghus 2004-01-13 18:35:32 UTC
Subject: Re:  Editor view isn't resized

I just write down everything I did - don't know whats caused it.

1) Remove quanta_berc
2) ALT-F2 => quanta_be
3) quanta open in it's default view, you can select a file and it opens 
properly.
4) Deselect Show messages and Show problem reporter.
5) Settings => Configure Quanta.
   a) Tag style: Deselect Auto-close optional tags and Update opening/closing 
tags.
   b) Environment: Default DTD => XHTML with ZPT (my own)
     Deselect Load last opened project, Load last opened files and Show close 
buttons on tabs.
   c) Layout: Tabbed treeviews.
   d) Click ok and deselect Show messages and Show problem reporter again ;-)

6) Settings => Configure Editor.
   a) Indentation: Use spaces instead ...
   b) Open/Save: Deselect backup local files on save.
   c) View defaults: Deselect folding markers. Select Show line numbers.
   Click OK
7) Close any open files. Close quanta and open it again.
8) Repeat step 5b and 7 as it wasn't saved.
9) Click on a file in the tree view and it opens OK because it uses the 
already open editor window. Click on a new file and the problem appears.
10) Make a cup of coffee ;-)

kdelibs is from this night. kdebase is still compiling...

Hope I'm not keeping you too busy :-)
   
Comment 4 András Manţia 2004-01-13 19:26:34 UTC
Subject: Re:  Editor view isn't resized

On Tuesday 13 January 2004 19:35, Thomas Olsen wrote:
> 9) Click on a file in the tree view and it opens OK because it uses the
> already open editor window. Click on a new file and the problem appears.

Wow, indeed. Good catch!

Andras

Comment 5 András Manţia 2004-01-13 20:19:29 UTC
Subject: quanta_be: quanta/quanta

CVS commit by amantia: 

Sometimes the editor widget was not scaled corectly...

CCMAIL: 72533-done@bugs.kde.org


  M +1 -1      quanta.cpp   1.387.2.42


--- quanta/quanta/quanta.cpp  #1.387.2.41:1.387.2.42
@@ -214,5 +214,5 @@ void QuantaApp::slotFileOpen( const KURL
 {
   m_doc->openDocument( url, encoding );
-  m_view->write()->view()->setFocus();
+  slotUpdateStatus(m_view->write());
 }