Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MwDxq-0001wA-Qc for mharc-grub-devel@gnu.org; Fri, 09 Oct 2009 07:48:50 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MwDxp-0001tj-3X for grub-devel@gnu.org; Fri, 09 Oct 2009 07:48:49 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MwDxo-0001s3-3G for grub-devel@gnu.org; Fri, 09 Oct 2009 07:48:48 -0400 Received: from [199.232.76.173] (port=36671 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MwDxn-0001rw-VN for grub-devel@gnu.org; Fri, 09 Oct 2009 07:48:48 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:38254) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MwDxn-0006hL-IN for grub-devel@gnu.org; Fri, 09 Oct 2009 07:48:47 -0400 Received: by fg-out-1718.google.com with SMTP id e21so257723fga.12 for ; Fri, 09 Oct 2009 04:48:46 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:sender:received:in-reply-to :references:date:x-google-sender-auth:message-id:subject:from:to :content-type:content-transfer-encoding; bh=Lz1O9d7+/cEpHoKI3itDHDzVUFzT0rG6o6wh7f1qiO0=; b=CLakwlxF108Pf7yKT8wzZuGl2CQnqRFDEyE5qgL0j53jpDrejeyJNg9bZMqzsI9Imd lcrDcgZbdMWjd6c1LwxMa8vpNTksYFX/7Q00gypCEczI6p7nRg0YRgoJxKmdzdFqSvYe /yiDF6bY01ykBcf+8S3G/aGzglKi0vpuoEwTI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:sender:in-reply-to:references:date :x-google-sender-auth:message-id:subject:from:to:content-type :content-transfer-encoding; b=rWsB2ygT+T5pYxCHKPjFUBstf5Y79tZX1yAjHFRUjprck4LQcfonSd8eGuV8TTmkxf GkhCE7gzR0eQIrqUoYdFZz0TEakOlAEJ/VG97ofHjJvWRReS/+ahUMFVgsnt2UZrhTwg DfTZL7WD4cL8Ss9NiNR3xFExRBuUOBuyww6Ps= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.214.34 with SMTP id m34mr2262933fgg.6.1255088926667; Fri, 09 Oct 2009 04:48:46 -0700 (PDT) In-Reply-To: References: Date: Fri, 9 Oct 2009 13:48:46 +0200 X-Google-Sender-Auth: 4fafc1ed23787da6 Message-ID: From: Michal Suchanek To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Subject: Re: [GITGRUB] New menu interface (implementation) X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Oct 2009 11:48:49 -0000 2009/10/9 Bean : > On Fri, Oct 9, 2009 at 5:46 AM, Michal Suchanek wro= te: >> 2009/10/8 Bean : >>> On Thu, Oct 8, 2009 at 7:18 PM, Michal Suchanek w= rote: >>>>> 2, You should use far position as you want to extend the widget at th= e >>>>> far side (top). >>>> >>>> This dependency is a problem. The rules for creating a working layout >>>> are then complicated and hard to understand. >>>> >>>> Also I have no idea why I should set position on the screen, it is >>>> never positioned. >>> >>> Hi, >>> >>> For example, if parent width=3D10, two children, width=3D4, then the >>> extend property decide how to assign the extra 2 space: >>> >>> extend=3Dfirst, space is added to first widget, which is 6,4 >>> extend=3Dall, space is distributed to alls widget, which is 5,5 >>> extend=3Dlast, space is added to last widget, which is 4,6 >> >> This should not be necessary. The default is to wrap the children with >> any spacing the children specify. =C2=A0This should work nicely for layo= uts >> similar to the current gfxterm. >> >> If the panel is larger (because it is itself extended or fixed-width) >> then children are packed at the start (which is determined by >> direction). This should work nicely for buttons in a dialog box, for >> example. If a dialog has two buttons they should be placed together, >> placing one on each end can easily lead to situation when the user >> notices only one of the buttons. >> >> If you want to explicitly control which children get the available >> space then finer granularity is again achieved by setting properties >> on the chidren. Any child that has the expand property will take a >> share of the surplus space. If you want children to take space without >> growing add another property which specifies that the space should be >> taken without expanding the element. > > Hi, > > What if more than one children has the extend property, for example, > how do we handle config like this: > > panel { > =C2=A0panel { halign=3D"extend" } > =C2=A0panel { } > =C2=A0panel { halign=3D"extend"} > =C2=A0panel { } > } > > Then both get a share of the available space, obviously. It's similar to your extend=3Dall but each child can opt to get a share of the extra space individually. Thanks Michal