Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

Added fast hack to resolve project menu height problem #186

Closed
wants to merge 1 commit into from
Closed

Added fast hack to resolve project menu height problem #186

wants to merge 1 commit into from

Conversation

marcandreappel
Copy link

I have about 150 projects in Chiliproject. As it is right now, the project menu (upper selector button) is about 5 times the actual page height. With the little piece of JS the height is set to 80% of the window height, but only if the menu height is greater then the page height. Then it adds a scrollbar to the menu.

@@ -564,6 +564,12 @@ jQuery(document).ready(function($) {
$('#account-nav .drop-down').live('click', function(event) {
var menuItem = $(this);

var windowHeight = Math.floor($.viewportHeight() * 0.8);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using a percentage value means that bigger screens end up having a lot of wasted space at the bottom of the page, perhaps using a fixed pixel value might be nicer (e.g. $.viewportHeight() == 1342 for me so there's about 270px wasted).

@marcandreappel
Copy link
Author

The intial idea on the 80% window height was for the "beauty" of UI coherence. And it is adaptive to all window heights (I have 2 screens with 2 different heights).

@thegcat
Copy link
Member

thegcat commented Jun 5, 2012

Thanks for your contribution, I ended up merging #199 though.

@thegcat thegcat closed this Jun 5, 2012
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants