Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

179
Visualizações
Phaser 3 Make the placeholders fit into the white background

so I am having a issue with my project. My project uses Phaser 3 framework, and what the issue I have is that I used rexUI to add a gridtable to make a table with 3 columns, however, the things inside the gridtable is sticking out as shown in the image.

enter image description here

I would like to shift it such that it would fit perfectly into the grid table but I am not sure how to do so.

The code below is how I add the placeholder into the scene. I tried adjusting the size of the placeholder, but I do not see any changes even if I make the changes extreme

let placeholder = this.add
      .sprite(905, 360, "placeholder")
      .setScale(0.6, 0.4);

and code below is the code used to create the table as well as add the items into the table.

var tabs = this.rexUI.add
      .tabs({
        x: 1103,
        y: 450,
        panel: this.rexUI.add.gridTable({
          x: 1103,
          y: 450,
          width: 977,
          height: 550,
          scrollMode: 0,
          background: placeholder,
          table: {
            cellWidth: 300,
            cellHeight: 255,
            columns: 3,
            mask: {
              padding: 2,
            },
            reuseCellContainer: true,
          },
          slider: {
            track: this.rexUI.add.roundRectangle(0, 0, 20, 10, 10, 0x737373),
            thumb: this.rexUI.add.roundRectangle(0, 0, 0, 0, 13, 0xbcbcbc),
          },
          space: {
            left: 20,
            right: 20,
            top: 20,
            bottom: 20,
            table: 10,
          },

If anyone is able to help me, it would be greatly appreciated

about 4 years ago · Juan Pablo Isaza
1 Respostas
Responde à pergunta

0

I'm no rexUi expert and, you just share a part of you code, but I think you could solve this problem by setting the stroke color and width from the placeholder panel.

  // placeholder.setStrokeStyle(lineWidth, color, alpha);
  placeholder.setStrokeStyle(10, 0xffffff, 1);

here the link: to the documentation

about 4 years ago · Juan Pablo Isaza Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda