Apex 5.1 - stickyWidget issue "redoTop"


There is a issue with stickyWidget in 5.1 when you application doesn't have Navigation menu or tree (element by id t_TreeNav).


the cause of error is in theme42.min.js file where is method call


method redoTop is available in apex 5.0 but in the 5.1 this method is called reStick, now to fix this I recommend that you create DA on page load on your page with javascript code
$.apex.stickyWidget.prototype.redoTop = $.apex.stickyWidget.prototype.reStick
or before you execute initialize your stickyWidget

                 $.apex.stickyWidget.prototype.redoTop = $.apex.stickyWidget.prototype.reStick
$("#rgnActions").stickyWidget({toggleWidth:true});                                             

this will create a synonym function for redoTop

Comments

  1. Thanks for reporting this bug. It will be fixed probably in the next patchset.

    The file currently used by your app that caused the error is
    images/themes/theme_42/1.0/js/theme42.js

    I assume this app was upgraded from 5.0 to 5.1
    Alternatively, update the Universal Theme to 5.1 should fix it as well because a newer version will be used
    images/themes/theme_42/1.1/js/theme42.js

    ReplyDelete
    Replies
    1. Hi Kyle,

      I run into this at apex.oracle.com (https://apex.oracle.com/pls/apex/f?p=101959:6) which was upgraded to 5.1. thanks for your reply.

      Best Regards
      isabolic

      Delete

Post a Comment

Popular Posts