mirror of
https://github.com/barsdeveloper/ueblueprint.git
synced 2026-02-16 02:10:38 +08:00
Fix link location and css small improvement
This commit is contained in:
@@ -175,7 +175,7 @@ export default class PinTemplate extends ITemplate {
|
||||
const rect = (this.#iconElement ?? this.element).getBoundingClientRect()
|
||||
/** @type {[Number, Number]} */
|
||||
const boundingLocation = [
|
||||
this.element.isInputVisually() && !oppositeDirection ? rect.left : rect.right + 1,
|
||||
this.element.isInputVisually() != oppositeDirection ? rect.left : rect.right + 1,
|
||||
(rect.top + rect.bottom) / 2
|
||||
]
|
||||
const location = Utility.convertLocation(boundingLocation, this.blueprint.template.gridElement)
|
||||
|
||||
Reference in New Issue
Block a user