Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1Mufhb-0002eC-Gw for mharc-grub-devel@gnu.org; Mon, 05 Oct 2009 01:01:39 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MufhY-0002du-Gd for grub-devel@gnu.org; Mon, 05 Oct 2009 01:01:36 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MufhT-0002cq-NR for grub-devel@gnu.org; Mon, 05 Oct 2009 01:01:35 -0400 Received: from [199.232.76.173] (port=38712 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MufhT-0002cf-HR for grub-devel@gnu.org; Mon, 05 Oct 2009 01:01:31 -0400 Received: from mail-pz0-f178.google.com ([209.85.222.178]:58275) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MufhT-0000Xv-12 for grub-devel@gnu.org; Mon, 05 Oct 2009 01:01:31 -0400 Received: by pzk8 with SMTP id 8so1424780pzk.8 for ; Sun, 04 Oct 2009 22:01:30 -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; bh=Qc/xtsMaCN3x2+RJqWgiwfHlc+DSTcy1cg2AyRZxkhE=; b=PXQ+fdeT8tteIDP3Fl7l+ImHEZ5viF+v8PGj5R7O0aQZeSRsYbVKHYDEOxUza72nLj eGdUNHnt4046tWBzDSbS/6iOmj3XnYVyEeshopYcslOoK2ZGnwLMFao1u+f8R5P0a1xY 5uOBPLplHhDvwidAFxHgM+7D+IjXESxRYCeNQ= 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; b=dSD4qHPrP1CbeuIs3G6TlnaX0fY92onOZZ1QWK/jJayDlXHeo+ipfEGre4i8xA3Hcx 0hnsYT09+pOvFdJtngSANSwwgVkFtJOFLeisg+4emgKPJxzx4hLSZUlBQ45RkFFM9jcY zX9MQ1WGj4LqRjbIjPPmp6kBcvi0S8TZE1avQ= MIME-Version: 1.0 Received: by 10.141.41.18 with SMTP id t18mr374030rvj.264.1254718890008; Sun, 04 Oct 2009 22:01:30 -0700 (PDT) In-Reply-To: References: Date: Mon, 5 Oct 2009 13:01:29 +0800 Message-ID: From: Bean To: The development of GRUB 2 Content-Type: text/plain; charset=ISO-8859-1 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 05:01:36 -0000 On Mon, Oct 5, 2009 at 5:57 AM, Michal Suchanek wrote: > There are panels above it so it is not left to right. > > The margin should increase the outer size of the widget so that when > space is allocated for it the margin is taken into account but not > stick it to the bottom. That's what alignment (valign) is for. Hi, To add space between widgets whose location is calculated by layout manger, use hspace and vspace, margin_bottom is used to indicate that widget is sticky to the south border and therefore not determined by the layout manger. > A width=100%, margin_left=3, margin_right=3 widget should occupy the > available width minus 6 characters. margin_left=3, margin_right=3 already means the widget would occupy the available width minus 6 characters, don't use width=100% as well otherwise it'd confuse the menu system. The percentage is calculated using parent panel, for example, if parent panel width is 10, margin_left=3, margin_right=3 would generate a width of 4, but 100% calculated as 10, they're different. -- Bean gitgrub home: http://github.com/grub/grub/ my fork page: http://github.com/bean123/grub/