Project

General

Profile

Actions

Bug #1257

closed

can not place elements of grid layout back to back

Added by Boris Nagaev over 12 years ago. Updated over 12 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Target version:
Start date:
04/25/2012
Due date:
% Done:

0%

Estimated time:

Description

Hello!

There are 4 images in WGridLayout (2x2). Each image is 256x256, container is 512x512. Images in the layout seem to be shifted in the vertical direction. White gap occurs in HTML version, while images overlap in JavaScript version (see screen shots).

Expected image is also attached.

In HTML version, computed height of

, which is parent of , is 260 instead of 256. Setting it to 256 in Firebug, I get expected image

This bug was initially discovered by Ramil Mintaev (ramil.mintaev@gmail.com).


Files

sapp2.cpp (1018 Bytes) sapp2.cpp Boris Nagaev, 04/26/2012 12:25 AM
sapp2-html.png (356 KB) sapp2-html.png HTML (FF 3.5) Boris Nagaev, 04/26/2012 12:25 AM
sapp2-js.png (341 KB) sapp2-js.png JavaScript (Chromium 6.0.472.63) Boris Nagaev, 04/26/2012 12:25 AM
sapp2-expected.png (336 KB) sapp2-expected.png expected Boris Nagaev, 04/26/2012 12:25 AM
Actions #1

Updated by Boris Nagaev over 12 years ago

If I resize WContainerWidget, holding WImage:

cw->resize(256, 256);

this solves the problem for HTML version, but not for JavaScript version.

Actions #2

Updated by Koen Deforche over 12 years ago

  • Status changed from New to InProgress
  • Assignee set to Koen Deforche
  • Target version set to 3.2.2

This is probably solved with the new layout implementation

Actions #3

Updated by Koen Deforche over 12 years ago

  • Status changed from InProgress to Resolved
Actions #4

Updated by Koen Deforche over 12 years ago

  • Status changed from Resolved to Closed

Released in Wt 3.2.2

Actions

Also available in: Atom PDF