Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MujXE-00075Q-4G for mharc-grub-devel@gnu.org; Mon, 05 Oct 2009 05:07:12 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MujXA-00074X-7J for grub-devel@gnu.org; Mon, 05 Oct 2009 05:07:08 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MujX4-00073E-K8 for grub-devel@gnu.org; Mon, 05 Oct 2009 05:07:07 -0400 Received: from [199.232.76.173] (port=53218 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MujX4-000736-4I for grub-devel@gnu.org; Mon, 05 Oct 2009 05:07:02 -0400 Received: from mail-bw0-f220.google.com ([209.85.218.220]:58099) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MujX3-000494-GH for grub-devel@gnu.org; Mon, 05 Oct 2009 05:07:01 -0400 Received: by bwz20 with SMTP id 20so2380403bwz.42 for ; Mon, 05 Oct 2009 02:07:00 -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=sL24wn1catW8TMI0/Zrje+mPmsk61Ze41fc2F8qX75g=; b=xMga06MpZYDvGFN5lEAck3iBJUOGT+GBjBfFIt8zwTj684bAzowYE96NGuKgmRWPpc t8BGea/kNC4IQozJ6o57HIIrNnjbthV4oUF9gqQai55cxxzVYyfs/mb7jHwPxa8pHMka nrGhah5a5G3yyfnJrKUNgrdhl8Hq/3xYJuMls= 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=Dd/WQ62oZOOndcabJqKtW50Bxj5Nh6LRz2Jjwal7w+FbmPUj5a9Y7fC+4+HT3mDA9l xWsixOjL2doGmi+O9t8YgWHOOqongJSAIPihYopLsfwT/6VDimTuvWKOAM6BiyIBMzHX S6RftYxjQMtAjiBqdZ2bWy4BNZg2pKnljhO4Q= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.164.6 with SMTP id m6mr5043989fge.42.1254733620163; Mon, 05 Oct 2009 02:07:00 -0700 (PDT) In-Reply-To: References: <2e59e6970910040906o4cd536bancb2655c7301d69ec@mail.gmail.com> Date: Mon, 5 Oct 2009 11:07:00 +0200 X-Google-Sender-Auth: 7ad5c516644405e5 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: Mon, 05 Oct 2009 09:07:09 -0000 2009/10/5 Bean : > On Mon, Oct 5, 2009 at 6:20 AM, Michal Suchanek wro= te: >> Hello >> >> I tried to get some borders into the previous demo but I got overlapping= panels. >> >> This should not happen because it is not supported. That's what the >> layout manager is for. > > Hi, > > I think you misunderstand the meaning of margin_* properties. It means > that the widget is always at a constant distance from parent widget. > Once it's set, their position is fixed, it's not subject to the layout > manger. This is used to create sticky panels like docks. For example: > > panel > { > =C2=A0panel { id=3D"aa" margin_bottom=3D0 } > =C2=A0panel { id=3D"bb" } > =C2=A0panel { id=3D"cc" } > =C2=A0panel { id=3D"dd"} > } > > aa's location is fixed, bb, cc and dd's location is calculated by the > panel, they can overlap with aa. > > The sticky panel also doesn't move when view port is scrolled to > display active item. No, dock is easily created like panel { panel { id=3D"aa" margin_bottom=3D0 } panel { panel { id=3D"bb" } panel { id=3D"cc" } panel { id=3D"dd"} } } 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{ direction =3D left_to_right panel{ id =3D"bb" ;valign =3D center} panel{ id =3D"bb" ; valign =3D top} panel{ id =3D"bb" ; valign =3D bottom} } } In a top to bottom or bottom to top the first panel is aligned to bottom/top side of the panel automatically. The margin property should not force a fixed position because it breaks layout to the point that elements overlap and it's completely pointless to have fixed position since position can be specified with margins and alignment once width is fixed to include margins. Thanks Michal