mirror of
https://github.com/rstudio/shiny.git
synced 2026-04-07 03:00:20 -04:00
Use canonical CSS property name
Firefox doesn't support shorthand properties like "border-left", but instead requires "border-left-width".
This commit is contained in:
@@ -1509,8 +1509,8 @@ function findOrigin($el) {
|
||||
// Find the size of the padding and border, for the top and left. This is
|
||||
// before any transforms.
|
||||
const paddingBorder = {
|
||||
left: parseInt($el.css("border-left")) + parseInt($el.css("padding-left")),
|
||||
top: parseInt($el.css("border-top")) + parseInt($el.css("padding-top"))
|
||||
left: parseInt($el.css("border-left-width")) + parseInt($el.css("padding-left")),
|
||||
top: parseInt($el.css("border-top-width")) + parseInt($el.css("padding-top"))
|
||||
};
|
||||
|
||||
// offset() returns the upper left corner of the element relative to the
|
||||
|
||||
Reference in New Issue
Block a user