Bug 72533 - Editor view isn't resized
Summary: Editor view isn't resized
Status: RESOLVED FIXED
Alias: None
Product: quanta
Classification: Miscellaneous
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR normal
Target Milestone: ---
Assignee: András Manţia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-01-13 09:16 UTC by Thomas Tanghus
Modified: 2004-01-13 20:19 UTC (History)
0 users

See Also:
Latest Commit:
Version Fixed In:


Attachments
Shows the problem (8.40 KB, image/png)
2004-01-13 09:18 UTC, Thomas Tanghus
Details

Note You need to log in before you can comment on or make changes to this bug.
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());
 }