EasyAdminBundle icon indicating copy to clipboard operation
EasyAdminBundle copied to clipboard

Can't scroll when there are too many entities

Open arukado-sama opened this issue 11 years ago • 34 comments

Usually I don't use the global interface of easy-admin (I display only 1 table for each page of my website), but I need a real admin section too so I want to use the usual view. Unfortunately it seems that I have too many entities, the left sidebar can't scroll down:

screenshot from 2015-05-18 09 38 12

Thanks in advance!

arukado-sama avatar May 18 '15 07:05 arukado-sama

Actually, you should be able to scroll. This was already handled before. I'll need to test the last version. I don't see the drop shadow neither (which should be visible on the last menu item ; is something happening when you resize the page in height ?

ogizanagi avatar May 18 '15 07:05 ogizanagi

When I resize the page I can access to hidden entities but can't scroll.

Don't know if it's normal/related but I have this issue with the admin menu:

screenshot from 2015-05-18 10 09 25

arukado-sama avatar May 18 '15 08:05 arukado-sama

@arukado-sama please update the bundle to the latest stable version which was released yesterday. The main menu should no longer overflow like in the image you posted.

javiereguiluz avatar May 18 '15 08:05 javiereguiluz

I updated it this morning and still have this issue (and I cleared the cache). Maybe my override of the layout twig isn't updated, I'll compare with the current one.

arukado-sama avatar May 18 '15 08:05 arukado-sama

Yup it may be a css issue from the previous latest version.

Did you reinstall the assets also ?

Pierstoval avatar May 18 '15 08:05 Pierstoval

I just checked my overrided layout, there is no difference, only some tests to show the sidebar or not but it works since the beginning.

arukado-sama avatar May 18 '15 09:05 arukado-sama

@arukado-sama : I confirm the last stable version is properly working. Do you load additional css ?

ogizanagi avatar May 18 '15 09:05 ogizanagi

In fact I load this css file:

#tabs ul
{
    font: normal 14px arial, sans, sans-serif;
    -list-style-type: none;
    margin: 0;
    padding-left:0;
    padding-right:0;
    padding-bottom: 26px;
}

#tabs ul li
{
    display: inline;
    float: left;
    height: 24px;
    min-width:80px;
    text-align:center;
    padding:0;
    margin: 1px 0px 0px 0px;
    border: 1px solid gray;
}

#tabs ul li.selected
{
    border-bottom: 1px solid #fff;
    background-color: #fff;
}


#tabs ul li a
{
    float: left;
    color: #666;
    text-decoration: none;
    padding: 4px;
    text-align:center;
    background-color:#eee;
    min-width:80px;
    border-bottom: 1px solid gray;
}

#tabs ul li a.selected
{
    color: #000;
    font-weight:bold;
    background-color: #fff;
    border-bottom: 1px solid #fff;
}

#tabs ul li a:hover
{
    color: #000;
    font-weight:bold;
    background-color: #fff;
}

#container 
{
    background: white;
    border:1px solid gray;
    padding:0;
    margin:0;
    left:0;
    top:0;  
}

iframe
{
    border:none;
}

But i remember it wasn't working before I add this css too.

arukado-sama avatar May 18 '15 09:05 arukado-sama

@arukado-sama : Is PH Projet the last item ? See #310

ogizanagi avatar May 18 '15 09:05 ogizanagi

No, there is a lot of entities after this one.

arukado-sama avatar May 18 '15 09:05 arukado-sama

I can't reproduce the error. With the latest version everything seems to work for me:

menu-lots-of-items

javiereguiluz avatar May 19 '15 07:05 javiereguiluz

After updating with composer the "connected as" square disappeared, but I still can't scroll down:

screenshot from 2015-05-19 10 16 28

I wonder if there is any issue with my css?

arukado-sama avatar May 19 '15 08:05 arukado-sama

I could have an idea about this issue. Is there any class named "container" in easy-admin? Because I'm using a javascript to resize iframes with "container" class in my project, it could affect scroll.

arukado-sama avatar May 19 '15 08:05 arukado-sama

@arukado-sama : Indeed: https://github.com/javiereguiluz/EasyAdminBundle/blob/master/Resources/views/default/layout.html.twig#L30 Try to disable this javascript.

ogizanagi avatar May 19 '15 08:05 ogizanagi

I disabled it, sadly it didn't work. I also tried to delete my override of layout.html.twig to use the default one.

EDIT: I tried to delete my custom css too, didn't work.

arukado-sama avatar May 19 '15 09:05 arukado-sama

@arukado-sama : This is very strange... Would you mind try the EasyAdminDemo ? You should replace the easyadmin version in composer.json by the last release.

ogizanagi avatar May 19 '15 18:05 ogizanagi

Seems that it also destroys my booleans and the delete button (it isn't working anymore):

screenshot from 2015-05-20 09 09 48 screenshot from 2015-05-20 09 10 13

I'll try out the demo now.

arukado-sama avatar May 20 '15 07:05 arukado-sama

Same problem when I use the bundle from the demo. The problem belongs to my app, somewhere.

arukado-sama avatar May 20 '15 08:05 arukado-sama

There might be an error in the assets you're loading

Pierstoval avatar May 20 '15 08:05 Pierstoval

@arukado-sama : If you encounter the same issue using the demo, this issue isn't related to your app, no ? Did you tried the easyadmin demo only replacing the easyadminbundle by the dev-master/latest release, without altering anything else ?

ogizanagi avatar May 20 '15 08:05 ogizanagi