Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

197
Views
La información sobre herramientas de primeng no se coloca correctamente en la página de desplazamiento horizontal

Tengo una página que, en ciertos anchos de pantalla, requiere desplazamiento horizontal. Hacia un extremo de la página, tengo un menú desplegable con objetos Primeng MenuItem , configurado para mostrar información sobre herramientas. El problema es que, si el menú desplegable está fuera de la pantalla de forma predeterminada y el usuario se desplaza hacia la derecha, la información sobre herramientas aparece donde estaría el borde de la pantalla sin desplazarse (es decir, aparece un poco más a la izquierda, pasando el mouse sobre nada en particular). ). Esto sucede independientemente de cómo esté configurada la propiedad appendTo o positionStyle de la información sobre herramientas.

fragmento html:

 <dropdown #dropdownMenu [options]="dropdownOptions"></dropdown>

fragmento mecanografiado:

 @ViewChild('dropdownMenu') dropdown: DropdownComponent; dropdownOptions: MenuItem<Thing>[]; /* Bunch of other code */ this.dropdownOptions = [ { label: "Item the first", command: (thing: Thing) => this.doThingWithThing(thing), tooltipOptions: { tooltipLabel: "This is the first item in the list", appendTo: "dropdownMenu", // also tried with this.dropdown, same result positionStyle: "relative", tooltipPosition: "left" }, { label: "Item the second", command: (thing: Thing) => this.doOtherThingWithThing(thing), tooltipOptions: { tooltipLabel: "This is the second item in the list", appendTo: "dropdownMenu", positionStyle: "relative", tooltipPosition: "left" }, // and so on ]

¿Qué debo hacer para que la información sobre herramientas aparezca adjunta al menú desplegable y no sobresalga de donde estaría el borde de la pantalla si el usuario no se hubiera desplazado?

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!