michael-s-molina commented on PR #20315:
URL: https://github.com/apache/superset/pull/20315#issuecomment-1150176317

   @stephenLYZ maybe we can make it a little more readable?
   
   ```
   getHeaderHeight() {
     if (this.headerRef) {
       const computedStyle = getComputedStyle(this.headerRef).getPropertyValue(
         'margin-bottom',
       );
       const marginBottom = parseInt(computedStyle, 10) || 0;
       return this.headerRef.offsetHeight + marginBottom;
     }
     return DEFAULT_HEADER_HEIGHT;
   }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to