mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 08:14:38 +02:00
Fixed errors VC
This commit is contained in:
parent
578400aa92
commit
8672629dd6
@ -102,15 +102,6 @@ final class Label extends Item
|
|||||||
// Retrieve global - common inputs.
|
// Retrieve global - common inputs.
|
||||||
$values = parent::getDefaultGeneralValues($values);
|
$values = parent::getDefaultGeneralValues($values);
|
||||||
|
|
||||||
// Default values.
|
|
||||||
if (isset($values['width']) === false) {
|
|
||||||
$values['width'] = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($values['height']) === false) {
|
|
||||||
$values['height'] = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -401,15 +401,6 @@ final class SimpleValue extends Item
|
|||||||
// Retrieve global - common inputs.
|
// Retrieve global - common inputs.
|
||||||
$values = parent::getDefaultGeneralValues($values);
|
$values = parent::getDefaultGeneralValues($values);
|
||||||
|
|
||||||
// Default values.
|
|
||||||
if (isset($values['width']) === false) {
|
|
||||||
$values['width'] = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (isset($values['height']) === false) {
|
|
||||||
$values['height'] = 100;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $values;
|
return $values;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -681,6 +681,17 @@ li#li-timeZone-item > select:not(:first-child) {
|
|||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.label,
|
||||||
|
div.simple-value {
|
||||||
|
display: inline-table;
|
||||||
|
min-width: -webkit-fit-content;
|
||||||
|
min-width: -moz-fit-content;
|
||||||
|
min-width: fit-content;
|
||||||
|
min-height: -webkit-fit-content;
|
||||||
|
min-height: -moz-fit-content;
|
||||||
|
min-height: fit-content;
|
||||||
|
}
|
||||||
|
|
||||||
/* Styles for the solid icons */
|
/* Styles for the solid icons */
|
||||||
|
|
||||||
.fa {
|
.fa {
|
||||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -113,28 +113,11 @@ export default class SimpleValue extends Item<SimpleValueProps> {
|
|||||||
return element;
|
return element;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected resizeElement(width: number, height: number): void {
|
|
||||||
console.log("estamos dentro del resize");
|
|
||||||
|
|
||||||
if (
|
|
||||||
this.elementRef.firstElementChild !== null &&
|
|
||||||
this.elementRef.firstElementChild.firstElementChild !== null
|
|
||||||
) {
|
|
||||||
console.log(this.elementRef.firstElementChild.firstElementChild);
|
|
||||||
console.log(
|
|
||||||
this.elementRef.firstElementChild.firstElementChild.getBoundingClientRect()
|
|
||||||
);
|
|
||||||
}
|
|
||||||
|
|
||||||
super.resizeElement(width, height);
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @override Item.createLabelDomElement
|
* Generate a element size
|
||||||
* Create a new label for the visual console item.
|
* using the current size and the default values.
|
||||||
* @return Item label.
|
* @return The size.
|
||||||
*/
|
*/ protected createLabelDomElement(): HTMLElement {
|
||||||
protected createLabelDomElement(): HTMLElement {
|
|
||||||
const element = document.createElement("div");
|
const element = document.createElement("div");
|
||||||
element.className = "visual-console-item-label";
|
element.className = "visual-console-item-label";
|
||||||
// Always return an empty label.
|
// Always return an empty label.
|
||||||
|
@ -506,3 +506,10 @@ li#li-timeZone-item > select:not(:first-child) {
|
|||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
div.label,
|
||||||
|
div.simple-value {
|
||||||
|
display: inline-table;
|
||||||
|
min-width: fit-content;
|
||||||
|
min-height: fit-content;
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user