Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mumcc-0005HD-MC for mharc-grub-devel@gnu.org; Mon, 05 Oct 2009 08:24:58 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mumca-0005GK-68 for grub-devel@gnu.org; Mon, 05 Oct 2009 08:24:56 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MumcV-0005G8-LO for grub-devel@gnu.org; Mon, 05 Oct 2009 08:24:55 -0400 Received: from [199.232.76.173] (port=47863 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MumcV-0005G5-G5 for grub-devel@gnu.org; Mon, 05 Oct 2009 08:24:51 -0400 Received: from mail-px0-f202.google.com ([209.85.216.202]:58396) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MumcV-0000Zp-4F for grub-devel@gnu.org; Mon, 05 Oct 2009 08:24:51 -0400 Received: by pxi40 with SMTP id 40so3140430pxi.24 for ; Mon, 05 Oct 2009 05:24:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type :content-transfer-encoding; bh=+lXPl3DAPybZlqrMfS0vrfB0/W4z9nEedsD4zUI9/mE=; b=JDknoL8vrbM+qh7NxEMdVEc1p2Gu9yLrHccV7sXrxAuin20pd2gNW5MeEUaRylMYAP 37Blu5/U656XZR2jNLFbFq2DMph7XyQP5mh4ZXTSmWArbBWPJr8mM0V9LbvVn8rWX6hn wtUKS3/VWFkdVMAy/1DZ1mKPC68fFuLutXujI= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type:content-transfer-encoding; b=AkQ1E9eGR4YF54cL2d5SUDho6YFNmBhQtJNwrAGfa6H8C3PGIUdvwNdtpXX1pInxMb NK7a5gwUx4EvJ1j6dvIAvgTK4jngPHM6e+JGRr75mD1brwsqaOjv58wuk6P37sAu3a/6 icrdFxlxhUdVp/pJ/csGSjoRNcVpoxRkKokog= MIME-Version: 1.0 Received: by 10.140.225.3 with SMTP id x3mr876616rvg.135.1254745490102; Mon, 05 Oct 2009 05:24:50 -0700 (PDT) In-Reply-To: References: <2e59e6970910040906o4cd536bancb2655c7301d69ec@mail.gmail.com> Date: Mon, 5 Oct 2009 20:24:50 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 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: Mon, 05 Oct 2009 12:24:56 -0000 On Mon, Oct 5, 2009 at 5:07 PM, Michal Suchanek wrote= : > A panel should never be removed from layout management, it then > becomes pointless. > > A top-aligned panel should be done with alignment, and should be only > possible in horizontal panels like this: > > panel{ > =A0direction =3D left_to_right > =A0panel{ id =3D"bb" ;valign =3D center} > =A0panel{ id =3D"bb" ; valign =3D top} > =A0panel{ id =3D"bb" ; valign =3D bottom} > =A0} > } > > In a top to bottom or bottom to top the first panel is aligned to > bottom/top side of the panel automatically. Hi, Actually, I just through of a possible issue with children assigned alignment. For the parent panel, there is a halign property, For example, if parent width is 50, each child's width is 10, there are three halign values: halign =3D right b1 b2 b3 empty 10 10 10 20 halign =3D center b1 empty b2 empty b3 10 10 10 10 10 halign =3D right empty b1 b2 b3 20 10 10 10 halign is obviously not belonged to children, so you might write it as: panel{ direction =3D left_to_right halign =3D center panel{ id =3D"bb" ;valign =3D center} panel{ id =3D"bb" ; valign =3D top} panel{ id =3D"bb" ; valign =3D bottom} } } But then there is problem, as panel can be children as well, for example: panel { id =3D "top" direction =3D top_to_bottom panel{ id =3D "aa" direction =3D left_to_right halign =3D center panel{ id =3D"bb" ;valign =3D center} panel{ id =3D"bb" ; valign =3D top} panel{ id =3D"bb" ; valign =3D bottom} } } } In this case, should halign of aa be used to control its own alignment from top, or that of its children ? --=20 Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/