@sheinx/hooks 3.8.0-beta.10 → 3.8.0-beta.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -245,7 +245,7 @@ var usePositionStyle = exports.usePositionStyle = function usePositionStyle(conf
|
|
245
245
|
_v = _targetPosition$split4[1];
|
246
246
|
if (_v === 'top') {
|
247
247
|
style.top = rect.top - containerRect.top + containerScroll.top - (offset ? offset[1] : 0);
|
248
|
-
setTransform(style, '');
|
248
|
+
setTransform(style, 'translateX(0%)');
|
249
249
|
} else if (_v === 'bottom') {
|
250
250
|
style.top = rect.bottom - containerRect.top + containerScroll.top + (offset ? offset[1] : 0);
|
251
251
|
setTransform(style, 'translateY(-100%)');
|
@@ -236,7 +236,7 @@ export var usePositionStyle = function usePositionStyle(config) {
|
|
236
236
|
_v = _targetPosition$split4[1];
|
237
237
|
if (_v === 'top') {
|
238
238
|
style.top = rect.top - containerRect.top + containerScroll.top - (offset ? offset[1] : 0);
|
239
|
-
setTransform(style, '');
|
239
|
+
setTransform(style, 'translateX(0%)');
|
240
240
|
} else if (_v === 'bottom') {
|
241
241
|
style.top = rect.bottom - containerRect.top + containerScroll.top + (offset ? offset[1] : 0);
|
242
242
|
setTransform(style, 'translateY(-100%)');
|