Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Muno0-0004Vi-1k for mharc-grub-devel@gnu.org; Mon, 05 Oct 2009 09:40:48 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Munny-0004TU-Am for grub-devel@gnu.org; Mon, 05 Oct 2009 09:40:46 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Munnx-0004SD-Bt for grub-devel@gnu.org; Mon, 05 Oct 2009 09:40:45 -0400 Received: from [199.232.76.173] (port=49110 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Munnx-0004Rv-5p for grub-devel@gnu.org; Mon, 05 Oct 2009 09:40:45 -0400 Received: from fg-out-1718.google.com ([72.14.220.159]:46596) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Munnw-0006tB-Pt for grub-devel@gnu.org; Mon, 05 Oct 2009 09:40:44 -0400 Received: by fg-out-1718.google.com with SMTP id e21so488721fga.12 for ; Mon, 05 Oct 2009 06:40:43 -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=ZhRT+cWY3LUgZ5PqOeKVSIWHfmE5si9mcrVYRKZj8BQ=; b=c8jk9sodJlMoYXKVJheGIw+bkH4uqAeUfjB0DYky07b8lmO+qLwOngeL4NaBTuawoC pdsbkpJng1mBCvGDP52/jWRENDpTr8GZ9SAbFZtuDpWEE1jjEvPT96fNeb6OMOpSiCmy UTt9hxNnL4b4XgG90ztz0fllgzwwKdpj91jpU= 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=EmOMF/Vv2QSLPllMUztPaDoddM1cjnnYPhJ1+dETYFtjIK+L4b+j/DzzatCTpM99Uc C8hfvSeBAIPgbhLPLeQK3gWR6NzjdwBITcrXA4euyi9l6YeVQV7d4NDqvzm9U9bCqdHN l0kf4nX53ImIlZQMf4D2XQDi1T6utFzPCOuA8= MIME-Version: 1.0 Sender: hramrach@gmail.com Received: by 10.86.208.2 with SMTP id f2mr14900fgg.16.1254750043848; Mon, 05 Oct 2009 06:40:43 -0700 (PDT) In-Reply-To: References: <2e59e6970910040906o4cd536bancb2655c7301d69ec@mail.gmail.com> Date: Mon, 5 Oct 2009 15:40:43 +0200 X-Google-Sender-Auth: b18a6ea43dba821b 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 13:40:46 -0000 2009/10/5 Bean : > On Mon, Oct 5, 2009 at 5:07 PM, Michal Suchanek wro= te: >> 2009/10/5 Bean : >>> On Mon, Oct 5, 2009 at 6:20 AM, Michal Suchanek w= rote: >>>> Hello >>>> >>>> I tried to get some borders into the previous demo but I got overlappi= ng 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 >> { >> =C2=A0panel { id=3D"aa" margin_bottom=3D0 } >> =C2=A0panel { >> =C2=A0panel { id=3D"bb" } >> =C2=A0panel { id=3D"cc" } >> =C2=A0panel { id=3D"dd"} >> =C2=A0} >> } >> >> A panel should never be removed from layout management, it then >> becomes pointless. > > Hi, > > Sometimes it's useful to have absolute address, for example to adjust > the window according to the background image, it's quite tricky to do > this with dynamic positioning. If you want everything to be controlled How is it hard to measure the place where you want to place the element on the background bitmap and use that place as the margin (or outer space as you call it) and then align the element to the border from which you measured (as in valign =3D bottom)? You measure and enter the exact same value as you do with fixed positioning but the layout manages makes sure that another element does not cover your precisely positioned element. > by the layout manger, just don't use the property and wrap panels > around widgets. That does not work because I want to insert spacing which the layout manager does not do automatically. > > From your previous description, I think your meaning of margin is some > kind of space left around the border of panel, I think that could be > useful as well, but perhaps with a different name, I'm considering the > following properties: > > inner_left, inner_right, inner_top, inner_bottom: space reserved > inside the border > outer_left, outer_right, outer_top, outer_bottom: space reserved > outside the border > > Perhaps the naming of margin_* property is a little misleading, > perhaps I can rename them distance_* to remind it they're used as > fixed distance to borders of parent. Yes. margin is normally used for spacing, not absolute positioning. However, spacing and alignment can be used together to force an absolute position without the need for yet another property. Thanks Michal