21491 Posts in 5783 Topics by 2622 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 1777 Views |
-
ModelAdmin search results limit

13 October 2009 at 10:42am
When I do a search in ModelAdmin, the results are limited to 30 by default which is ok. The problem is that I cannot see all of the results because of a bug in the CSS. The outer div does not surround all of the results but seems to cover up the lower ones. I am using SS 2.3.3.
-
Re: ModelAdmin search results limit

13 October 2009 at 1:10pm
Have you tried different browsers? How about tweaking it with Firebug and/or greasemonkey until the fix is applied? You did log/search the open tickets on this, correct?
-
Re: ModelAdmin search results limit

3 November 2009 at 9:35am
I ran into the same issue. Apparently this is being changed in 2.4, so you can regard this as a temp patch.
There is a fitToParent javascript call that helps keep everything looking nice but applying overflow:hidden to holder objects. It doesn't apply this if overflow:auto is specifically set, though.... In the case of ModelAdminPanel, this is not set which is keeping the scrollbar from appearing. This fix worked for me and my clients:
First, apply the following code to your init() function in your ModelAdmin class:
function init() {
parent::init();
Requirements::customCSS("
#right #ModelAdminPanel{overflow:auto !important;}
body.ModelAdmin #right{overflow: auto !important;}
");Next, you'll need to mod the LeftAndMain.js file. At line 160, comment out the fitToParent function:
// fitToParent('ModelAdminPanel',-60);
Let us know how it works out for you!
-John
-
Re: ModelAdmin search results limit

2 February 2010 at 5:29pm Last edited: 2 February 2010 7:23pm
An easier fix is to just add the following to one of your custom css files or as above:
ProductAdmin.js
$('#ModelAdminPanel').css('overflow', 'auto');
Personally if I am hacking I like to still leave the core files alone.
-
Re: ModelAdmin search results limit

10 March 2010 at 7:05am
Hi guys,
Place this in your extended ModelAdmin class...
static $page_length = 10;
...it will limit the results
| 1777 Views | ||
|
Page:
1
|
Go to Top |






