Revision: 1530
http://mrbs.svn.sourceforge.net/mrbs/?rev=1530&view=rev
Author: cimorrison
Date: 2010-10-22 09:15:37 +0000 (Fri, 22 Oct 2010)
Log Message:
-----------
Made the widths of the start and time select boxes equal after each change.
Thanks to jQuery.
Modified Paths:
--------------
mrbs/branches/from_to_bookings/web/Themes/default/header.inc
Modified: mrbs/branches/from_to_bookings/web/Themes/default/header.inc
===================================================================
--- mrbs/branches/from_to_bookings/web/Themes/default/header.inc
2010-10-22 08:41:07 UTC (rev 1529)
+++ mrbs/branches/from_to_bookings/web/Themes/default/header.inc
2010-10-22 09:15:37 UTC (rev 1530)
@@ -414,7 +414,22 @@
}
}
-
+ <?php
+ // Make the two select boxes the same width. Note that we set
+ // the widths of both select boxes, even though it would seem
+ // that just setting the width of the smaller should be sufficient.
+ // But if you don't set both of them then you end up with a few
+ // pixels difference. In other words doing a get and then a set
+ // doesn't leave you where you started - not quite sure why.
+ // The +2 is a fudge factor. Without it the text of the longest
+ // option is slightly truncated - again, not sure why.
+ ?>
+ var startWidth = $("#start_seconds").width();
+ var endWidth = $("#end_seconds").width();
+ var maxWidth = Math.max(startWidth, endWidth) + 2;
+ $("#end_seconds").width(maxWidth);
+ $("#start_seconds").width(maxWidth);
+
}
<?php
}
This was sent by the SourceForge.net collaborative development platform, the
world's largest Open Source development site.
------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Mrbs-commits mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mrbs-commits