Issue 50630

Summary: Problems with relative frame height (and width)
Product: Writer Reporter: timi_openoffice <blockopenoffice.1.urwald>
Component: uiAssignee: michael.ruess
Status: CLOSED DUPLICATE QA Contact: issues@sw <issues>
Severity: Trivial    
Priority: P3 CC: issues
Version: OOo 2.0 Beta   
Target Milestone: ---   
Hardware: All   
OS: All   
Issue Type: DEFECT Latest Confirmation in: ---
Developer Difficulty: ---
Attachments:
Description Flags
The document showing the bug
none
The same content in 1.1 without problems
none
The file made from the test1.1.sxw without showing problems none

Description timi_openoffice 2005-06-12 11:30:06 UTC
When I open the attached document test.odt (with one frame anchor type "page"
width: 100%, height: 100%; and another frame anchor type "frame" width: 50%,
height: 50%), it is displayed correctly. When I open the dialog Format->Frame,
he shows me width:50% and height:25%. When I click OK without making any
changes, the height is halved to 25%. I can repeat this (opening the dialog and
click OK) and each time the hight is halved: 12%, then 6%, then 3%, then 1%.

I don't know much about the file format, but values for svg:height in the file
test.odt are also a litte bit strange:

 <office:body>
  <office:text>
   <office:forms form:automatic-focus="false" form:apply-design-mode="false"/>
   <text:sequence-decls>
    <text:sequence-decl text:display-outline-level="0" text:name="Illustration"/>
    <text:sequence-decl text:display-outline-level="0" text:name="Table"/>
    <text:sequence-decl text:display-outline-level="0" text:name="Text"/>
    <text:sequence-decl text:display-outline-level="0" text:name="Drawing"/>
   </text:sequence-decls><draw:frame draw:style-name="fr1" draw:name="Frame1"
text:anchor-type="page" text:anchor-page-number="1" svg:width="169.99mm"
style:rel-width="100%" svg:height="64.24mm" style:rel-height="50%" draw:z-index="0">
    <draw:text-box><draw:frame draw:style-name="fr2" draw:name="Frame2"
text:anchor-type="frame" svg:width="84.98mm" style:rel-width="50%"
svg:height="64.24mm" style:rel-height="50%" draw:z-index="1">
      <draw:text-box>
       <text:p text:style-name="Frame_20_contents"/>
      </draw:text-box>
     </draw:frame>
     <text:p text:style-name="Frame_20_contents"/>
    </draw:text-box>
   </draw:frame>
   <text:p text:style-name="Standard"/>
  </office:text>
 </office:body>
 
PS: When I construct the same document with 1.1 (attached as test1.1.sxw) and
then open it in 1.9.104, save it as odt (attached as test1.1.odt) and reopen it
with 1.9.104, there are no problems.

I'm working under linux - but under windows, there seem also to be problems...
Comment 1 timi_openoffice 2005-06-12 11:31:01 UTC
Created attachment 27105 [details]
The document showing the bug
Comment 2 timi_openoffice 2005-06-12 11:31:45 UTC
Created attachment 27106 [details]
The same content in 1.1 without problems
Comment 3 timi_openoffice 2005-06-12 11:32:28 UTC
Created attachment 27107 [details]
The file made from the test1.1.sxw without showing problems
Comment 4 michael.ruess 2005-06-14 14:00:50 UTC
Currently there is a problem with relative width and height adjustment in Frame-
and Graphic dialog. See issue 25391.

*** This issue has been marked as a duplicate of 25391 ***
Comment 5 michael.ruess 2005-06-14 14:02:40 UTC
Closing duplicate.