[wp-trac] [WordPress Trac] #33953: Chrome periodically does not redraw the admin panel after setPinMenu() is called
WordPress Trac
noreply at wordpress.org
Mon Sep 21 23:35:31 UTC 2015
#33953: Chrome periodically does not redraw the admin panel after setPinMenu() is
called
--------------------------+-----------------------------------------
Reporter: deadduck169 | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.3.1
Severity: normal | Resolution:
Keywords: | Focuses: javascript, administration
--------------------------+-----------------------------------------
Comment (by deadduck169):
Actually, now that I think of it, it is probably inefficient to redraw the
whole {{{window.body}}} element. You can instead just do
{{{$adminmenu.hide().show(0);}}}
Or maybe selecting a more specific sub-element of {{{$adminmenu}}} if that
is more efficient. Something like:
{{{$adminmenu.find("li a").first().hide().show(0);}}}
As long as any changes are made to the menu element, Chrome will redraw
it.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33953#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list