@eturnity/eturnity_reusable_components 7.45.1-EPDM-12459.0 → 7.45.1-EPDM-12459.1

Sign up to get free protection for your applications and to get access to all the features.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eturnity/eturnity_reusable_components",
3
- "version": "7.45.1-EPDM-12459.0",
3
+ "version": "7.45.1-EPDM-12459.1",
4
4
  "files": [
5
5
  "dist",
6
6
  "src"
@@ -120,6 +120,11 @@
120
120
  <SelectDropdown
121
121
  v-show="isSelectDropdownShown"
122
122
  ref="dropdown"
123
+ :style="{
124
+ transform: `translate(${dropdownPosition?.left}px, ${
125
+ noRelative ? 'auto' : `${dropdownPosition?.top}px`
126
+ })`,
127
+ }"
123
128
  :bg-color="
124
129
  dropdownBgColor || colorMode == 'dark' ? 'black' : 'white'
125
130
  "
@@ -344,9 +349,8 @@
344
349
  box-sizing: border-box;
345
350
  z-index: ${(props) => (props.isActive ? '2' : '99999')};
346
351
  position: absolute;
347
- top: ${(props) =>
348
- props.noRelative ? 'auto' : props.dropdownPosition?.top + 'px'};
349
- left: ${(props) => props.dropdownPosition?.left}px;
352
+ top: 0px;
353
+ left: 0px;
350
354
  border: ${BORDER_WIDTH} solid ${(props) => props.theme.colors.grey4};
351
355
  border-radius: 4px;
352
356
  display: flex;
@@ -737,25 +741,6 @@
737
741
  document.removeEventListener('click', this.clickOutside)
738
742
  },
739
743
  methods: {
740
- getDistanceBetweenSelectAndDropdownMenu() {
741
- const wholeSelectTopPosition =
742
- this.selectTopPosition + this.$refs.select.$el.clientHeight
743
- this.selectAndDropdownDistance =
744
- this.dropdownPosition.top - wholeSelectTopPosition
745
- },
746
- calculateSelectTopPosition() {
747
- const selectRef = this.$refs.select
748
- if (selectRef) {
749
- const currentTopPosition =
750
- selectRef.$el.getBoundingClientRect().top + window.scrollY
751
- if (this.selectTopPosition !== currentTopPosition) {
752
- this.selectTopPosition = currentTopPosition
753
- }
754
- }
755
- this.animationFrameId = requestAnimationFrame(
756
- this.calculateSelectTopPosition
757
- )
758
- },
759
744
  focus() {
760
745
  this.isActive = true
761
746
  },
@@ -953,6 +938,25 @@
953
938
  }
954
939
  }
955
940
  },
941
+ getDistanceBetweenSelectAndDropdownMenu() {
942
+ const wholeSelectTopPosition =
943
+ this.selectTopPosition + this.$refs.select.$el.clientHeight
944
+ this.selectAndDropdownDistance =
945
+ this.dropdownPosition.top - wholeSelectTopPosition
946
+ },
947
+ calculateSelectTopPosition() {
948
+ const selectRef = this.$refs.select
949
+ if (selectRef) {
950
+ const currentTopPosition =
951
+ selectRef.$el.getBoundingClientRect().top + window.scrollY
952
+ if (this.selectTopPosition !== currentTopPosition) {
953
+ this.selectTopPosition = currentTopPosition
954
+ }
955
+ }
956
+ this.animationFrameId = requestAnimationFrame(
957
+ this.calculateSelectTopPosition
958
+ )
959
+ },
956
960
  },
957
961
  }
958
962
  </script>