File tree 2 files changed +5
-3
lines changed
2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -12,6 +12,7 @@ const app = createApp(PlaygroundApp);
12
12
app . use ( createVColorField ( ) ) ;
13
13
app . use ( createPinia ( ) ) ;
14
14
app . component ( 'font-awesome-icon' , FontAwesomeIcon ) ;
15
+
15
16
app . component ( 'FaIcon' , FontAwesomeIcon ) ;
16
17
17
18
registerPlugins ( app ) ;
Original file line number Diff line number Diff line change @@ -329,11 +329,11 @@ const pickerMode = ref<Mode>(defaults.value.VColorPicker?.mode);
329
329
const themeAll = ref (settings .theme ?? undefined );
330
330
let textFieldProperties = reactive <TextFieldProperties >({
331
331
bottom: 0 ,
332
- height: 0 ,
332
+ height: 150 ,
333
333
left: 0 ,
334
334
right: 0 ,
335
335
top: 0 ,
336
- width: 0 ,
336
+ width: 300 ,
337
337
});
338
338
339
339
// ------------------------- Pip //
@@ -432,6 +432,7 @@ function toggleColorPicker(trigger?: string | Event): void {
432
432
let inputWidth: number = 300 ;
433
433
let positionLeft = fieldElementCoords ?.left ?? 0 ;
434
434
let positionRight = fieldElementCoords ?.right ?? 0 ;
435
+ const positionTop = fieldElementCoords ?.top ?? 0 ;
435
436
436
437
const fieldInputContainer: HtmlRefElement = fieldContainerRef ?.value ?.querySelector (' .v-field__input' );
437
438
const fieldContainerInputCoords = fieldInputContainer ?.getBoundingClientRect () ?? defaultCoords ;
@@ -446,7 +447,7 @@ function toggleColorPicker(trigger?: string | Event): void {
446
447
height: inputHeight as number ,
447
448
left: positionLeft ,
448
449
right: positionRight ,
449
- top: (window .scrollY + fieldElementCoords ?. top ?? 0 ),
450
+ top: (window .scrollY + positionTop ),
450
451
width: settings .cardFieldWidth ? inputWidth : ' auto' ,
451
452
};
452
453
You can’t perform that action at this time.
0 commit comments