[wp-trac] [WordPress Trac] #19021: Broken pointers if attached to elements visible after scroll of page
WordPress Trac
wp-trac at lists.automattic.com
Fri Oct 21 00:19:49 UTC 2011
#19021: Broken pointers if attached to elements visible after scroll of page
--------------------------+-----------------------------
Reporter: kkarpieszuk | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Widgets | Version: 3.3
Severity: normal | Keywords: needs-patch
--------------------------+-----------------------------
If you attach pointer for example to #footer it looks bad.
Try this code:
{{{
add_action( 'admin_enqueue_scripts', 'my_admin_enqueue_scripts' );
function my_admin_enqueue_scripts() {
// Using Pointers
wp_enqueue_style( 'wp-pointer' );
wp_enqueue_script( 'wp-pointer' );
// Register our action
add_action( 'admin_print_footer_scripts',
'my_admin_print_footer_scripts' );
}
function my_admin_print_footer_scripts() {
// This will run during footer scripts, use jQuery to show the pointer
here.
$pointer_content = '<h3>Test</h3>';
$pointer_content .= '<p>Test';
?>
<script type="text/javascript">
//<![CDATA[
jQuery(document).ready( function($) {
$('#footer').pointer({
content: '<?php echo $pointer_content; ?>',
position: 'bottom',
}).pointer('open');
});
//]]>
</script>
<?php
}
}}}
as you can see, arrow is over the infobox and even infobox is under
footer. http://minus.com/mbde0EcLFG
I think it heppens only when footer is not visible after page load. When i
tried this on some admin page, where scroll bar is not visible (page is
shorter than window height) pointer was ok.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/19021>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list