Title: bunnycode's Replies | WordPress.org

---

# bunnycode

  [  ](https://wordpress.org/support/users/bunnycode/)

 *   [Profile](https://wordpress.org/support/users/bunnycode/)
 *   [Topics Started](https://wordpress.org/support/users/bunnycode/topics/)
 *   [Replies Created](https://wordpress.org/support/users/bunnycode/replies/)
 *   [Reviews Written](https://wordpress.org/support/users/bunnycode/reviews/)
 *   [Topics Replied To](https://wordpress.org/support/users/bunnycode/replied-to/)
 *   [Engagements](https://wordpress.org/support/users/bunnycode/engagements/)
 *   [Favorites](https://wordpress.org/support/users/bunnycode/favorites/)

 Search replies:

## Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)

 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Customize WordPress Emails and Alerts - Better Notifications for WP] Shortcode for User Role Changed name?](https://wordpress.org/support/topic/shortcode-for-user-role-changed-name/)
 *  Thread Starter [bunnycode](https://wordpress.org/support/users/bunnycode/)
 * (@bunnycode)
 * [10 years, 2 months ago](https://wordpress.org/support/topic/shortcode-for-user-role-changed-name/#post-7226116)
 * Awesome! Thanks Jack!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Signature Addon] Canvas breaking in step-through progress form](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/)
 *  Thread Starter [bunnycode](https://wordpress.org/support/users/bunnycode/)
 * (@bunnycode)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/#post-7197770)
 * I’m not sure why this works but I found some info [here](http://stackoverflow.com/questions/19666790/html5-canvas-100-height-and-width)
   and threw it in and it seems to work, somehow?:
 *  var bufferCanvas = signatures[index].canvas;
 *  var ratio = Math.max(window.devicePixelRatio || 1, 1);
    bufferCanvas.width =
   canvas.width = window.innerWidth; bufferCanvas.height = canvas.height = window.
   innerHeight; canvas.getContext(“2d”).scale(ratio, ratio);
 * Hope this helps or at least leads someone to a fix!
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Signature Addon] Canvas breaking in step-through progress form](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/)
 *  Thread Starter [bunnycode](https://wordpress.org/support/users/bunnycode/)
 * (@bunnycode)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/#post-7197762)
 * Quick note – when I use `window.onresize = sigFieldsResize;` and I resize the
   browser, it works.
 * Hard coded width and height does not work 🙁
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Signature Addon] Canvas breaking in step-through progress form](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/)
 *  Thread Starter [bunnycode](https://wordpress.org/support/users/bunnycode/)
 * (@bunnycode)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/#post-7197758)
 * Trying that. Which second step? Are you talking about this:
 *     ```
       // Dealing with window size and device ratio
       function sigFieldResize(index, clear){
   
       	var canvas = signatures[index].canvas;
   
       	var ratio =  Math.floor(window.devicePixelRatio || 1, 1);
            canvas.width = canvas.offsetWidth * ratio;
            canvas.height = canvas.offsetHeight * ratio;
       	//canvas.width = 400;
           //canvas.height = 100;
           canvas.getContext("2d").scale(ratio, ratio);
   
           if (clear){
           	sigFieldClear(index);
           }
       }
       ```
   
 *   Forum: [Plugins](https://wordpress.org/support/forum/plugins-and-hacks/)
    In
   reply to: [[Contact Form 7 Signature Addon] Canvas breaking in step-through progress form](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/)
 *  Thread Starter [bunnycode](https://wordpress.org/support/users/bunnycode/)
 * (@bunnycode)
 * [10 years, 3 months ago](https://wordpress.org/support/topic/canvas-breaking-in-step-through-progress-form/#post-7197750)
 * Weird, right? Thanks for your response! If I find a solution I will come back
   and post it 🙂

Viewing 5 replies - 1 through 5 (of 5 total)