Hide admin_menu when viewing click heatmaps
mcrittenden - June 28, 2009 - 14:45
| Project: | Click HeatMap |
| Version: | 6.x-2.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | boombatower |
| Status: | closed |
Description
If you use this module with admin_menu enabled, then when you view the click heatmap, the clicks will appear to be about 18 pixels higher than they really were because the heatmap shows admin_menu which pushes the body down, but the users don't see that so the body is actually 18px higher for them.
I don't know if this is really within your control since I guess this module probably just embeds the page as the background of the flash file without the ability to do any rendering to it, but I thought I'd check anyway.
Thanks!

#1
Yea it just uses an iframe to load page for background.
One options might be the ability to disable the admin menu in iframe...admin_menu would need some sort of switch.
#2
Transferring to admin_menu issue queue to see what sun thinks about your suggestion.
#3
I don't understand whether the problem is inside of the the IFRAME or outside.
If it is inside, then you can probably just do:
<?phpmodule_invoke('admin_menu', 'suppress');
?>
as early as possible in the request before hook_footer() is invoked.
If it is outside, then it gets harder. You might check for the CSS class
body.admin-menuto dynamically alter the margin.#4
It's inside. With that comment in mind, I'm going to move back over to Click Heatmap.
Thanks, sun.
#5
Finally got around to cleaning up this module a bit.
#6
Committed.
#7
Thanks!
#8
Automatically closed -- issue fixed for 2 weeks with no activity.