New issue
Advanced search Search tips

Issue 761767 link

Starred by 1 user

Issue metadata

Status: Started
Owner:
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 3
Type: Bug

Blocked on:
issue 649400

Blocking:
issue 758157



Sign in to add a comment

GridLayout doesn't handle properly lack of space

Project Member Reported by vasi...@chromium.org, Sep 4 2017

Issue description

Chrome Version: 63.0.3204.0
OS: Linux

In the manage passwords bubble we have a layout [FILL, FILL, TRAILING] with resize_percent [1, 1, 0]. But if we create a long username like 'superlongusernamesolonglonglonglonglonglonglonglonglonglonglonglonglonglonglonglong' and normal password '12345' then the username is printed over the 'x' button as you can see in  Issue 758157 .

GridLayout calculated intersecting rects for different columns.

 
Maybe  Issue 649400  is related here.

Comment 2 by pbos@chromium.org, Oct 11 2017

Blockedon: 649400
Cc: bsep@chromium.org
Owner: pbos@chromium.org
Status: Assigned (was: Untriaged)

Comment 3 by sky@chromium.org, Oct 12 2017

Owner: sky@chromium.org
Status: Started (was: Assigned)
Project Member

Comment 4 by bugdroid1@chromium.org, Oct 13 2017

The following revision refers to this bug:
  https://chromium.googlesource.com/chromium/src.git/+/eaeea6e5e051d6467a4f58e355c229d1094791a0

commit eaeea6e5e051d6467a4f58e355c229d1094791a0
Author: Scott Violet <sky@chromium.org>
Date: Fri Oct 13 18:59:49 2017

Makes GridLayout honor minimum size

When GridLayout is given less space than the preferred size it
previously shrunk all columns marked as resizable, with no concern for
the minimum. This patch makes GridLayout bound the shrinking by the
minimum size. The minimum size is considered only for Views whose
preferred width was not explicitly specified and the containing columns
are resizable (resize_percent > 0) and don't have a fixed width.

BUG=761767
TEST=covered by tests

Change-Id: I00d501c27e2af229c8a161b6f6d3643f084fe055
Reviewed-on: https://chromium-review.googlesource.com/717498
Reviewed-by: Elliot Glaysher <erg@chromium.org>
Commit-Queue: Scott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#508768}
[modify] https://crrev.com/eaeea6e5e051d6467a4f58e355c229d1094791a0/ui/views/layout/grid_layout.cc
[modify] https://crrev.com/eaeea6e5e051d6467a4f58e355c229d1094791a0/ui/views/layout/grid_layout.h
[modify] https://crrev.com/eaeea6e5e051d6467a4f58e355c229d1094791a0/ui/views/layout/grid_layout_unittest.cc

Sign in to add a comment