From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1Wp3Ya-0001zR-Hz for mharc-grub-devel@gnu.org; Mon, 26 May 2014 18:39:48 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50593) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp3YS-0001qH-Ru for grub-devel@gnu.org; Mon, 26 May 2014 18:39:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wp3YM-0005a4-Oj for grub-devel@gnu.org; Mon, 26 May 2014 18:39:40 -0400 Received: from p3plsmtpa08-08.prod.phx3.secureserver.net ([173.201.193.109]:41339) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wp3YM-0005Zt-FL for grub-devel@gnu.org; Mon, 26 May 2014 18:39:34 -0400 Received: from [192.168.1.110] ([73.50.64.254]) by p3plsmtpa08-08.prod.phx3.secureserver.net with id 6mKX1o00D5V8ETM01mKXUg; Mon, 26 May 2014 15:19:32 -0700 X-Sender: john@prpcompany.com Message-ID: <5383BDEB.8000801@prpcompany.com> Date: Mon, 26 May 2014 18:19:23 -0400 From: John Hupp User-Agent: Mozilla/5.0 (Windows NT 6.0; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 MIME-Version: 1.0 To: grub-devel@gnu.org Subject: Grub2 theme bug with relative numeric values for boot_menu? Content-Type: multipart/alternative; boundary="------------070608030905060801070005" X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 173.201.193.109 X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 26 May 2014 22:39:47 -0000 This is a multi-part message in MIME format. --------------070608030905060801070005 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit I'm trying to make my theme completely resolution-independent. You can see a current screen shot at Post your Grub 2 Themes Grub responded well to % values for the numeric values in the progress bar and labels. Also OK with %'s for boot_menu properties top, left, height, width. But I'm getting bad behavior with item_height and the other properties. For a 1024x768 grub display and an original setting of item_height = 26, I can't get equivalent output unless I set item_height = 27% So item_height seems to be referencing a parent with a height of about 96, rather than 768. This is in a VMWare Player environment running Lubuntu 14.04. Is this a known problem, or is there an explanation/workaround? (I also realized as I got into this that I will run into a problem with different aspect ratios, so other than creating at least two themes for the commonest aspect ratios, I'd be interested in a tip there as well if there is a solution.) --------------070608030905060801070005 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit I'm trying to make my theme completely resolution-independent.  You can see a current screen shot at Post your Grub 2 Themes

Grub responded well to % values for the numeric values in the progress bar and labels.  Also OK with %'s for boot_menu properties top, left, height, width.

But I'm getting bad behavior with item_height and the other properties.  For a 1024x768 grub display and an original setting of item_height = 26, I can't get equivalent output unless I set item_height = 27%

So item_height seems to be referencing a parent with a height of about 96, rather than 768.

This is in a VMWare Player environment running Lubuntu 14.04.

Is this a known problem, or is there an explanation/workaround?

(I also realized as I got into this that I will run into a problem with different aspect ratios, so other than creating at least two themes for the commonest aspect ratios, I'd be interested in a tip there as well if there is a solution.)
--------------070608030905060801070005--