Skip to content
This repository has been archived by the owner on Jun 1, 2024. It is now read-only.

Image changing size in TabBar #1554

Closed
dantes-git opened this issue May 12, 2021 · 0 comments
Closed

Image changing size in TabBar #1554

dantes-git opened this issue May 12, 2021 · 0 comments
Labels
bug Something isn't working iOS This issue directly affects structure and logic of iOS project

Comments

@dantes-git
Copy link
Contributor

Description

The Image is changging size inside Tab when user change active page by pressing a specific tab

This bug occur only on master

Steps To Reproduce

Provide a detailed list of steps that reproduce the issue.

  1. Create a TabBar with two pages with a Image inside

Expected Results

The Image should not change size when Tab animate to another page

Code example, screenshot, or link to a repository:

{
  "_beagleComponent_": "beagle:container",
  "context": {
    "id": "contextTab",
    "value": 0
  },
  "children": [
    {
      "_beagleComponent_": "beagle:tabbar",
      "onTabSelection": [
        {
          "_beagleAction_": "beagle:setContext",
          "contextId": "contextTab",
          "value": "@{onTabSelection}"
        }
      ],
      "currentTab": "@{contextTab}",
      "items": [
        {
          "icon": {
            "_beagleImagePath_": "local",
            "url": "public/beagle.png",
            "mobileId": "beagle"
          },
          "title": "Tab 1"
        },
        {
          "icon": {
            "_beagleImagePath_": "local",
            "url": "public/beagle.png",
            "mobileId": "beagle"
          },
          "title": "Tab 2"
        }
      ]
    },
    {
      "_beagleComponent_": "beagle:pageview",
      "currentPage": "@{contextTab}",
      "showArrow": false,
      "onPageChange": [
        {
          "_beagleAction_": "beagle:setContext",
          "contextId": "contextTab",
          "value": "@{onPageChange}"
        }
      ],
      "children": [
        {
          "_beagleComponent_": "beagle:image",
          "path": {
            "_beagleImagePath_": "remote",
            "url": "https://i.ibb.co/k9tYwtX/selo-do-exemplo-28420393.jpg"
          },
          "style": {
            "size": {
              "height": {
                "value": 250,
                "type": "REAL"
              },
              "width": {
                "value": 300,
                "type": "REAL"
              }
            },
            "margin": {
              "top": {
                "value": 10,
                "type": "REAL"
              }
            }
          }
        },
        {
          "_beagleComponent_": "beagle:image",
          "path": {
            "_beagleImagePath_": "remote",
            "url": "https://i.ibb.co/LCKYdCT/742px-Example-en-svg.png"
          },
          "style": {
            "size": {
              "height": {
                "value": 250,
                "type": "REAL"
              },
              "width": {
                "value": 300,
                "type": "REAL"
              }
            },
            "margin": {
              "top": {
                "value": 10,
                "type": "REAL"
              }
            }
          }
        }
      ]
    }
  ]
}

Simulator Screen Recording - iPhone 11 - 2021-05-12 at 09 15 17

@dantes-git dantes-git added bug Something isn't working iOS This issue directly affects structure and logic of iOS project labels May 12, 2021
@dantes-git dantes-git changed the title Image changging size in TabBar Image changing size in TabBar May 13, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working iOS This issue directly affects structure and logic of iOS project
Projects
None yet
Development

No branches or pull requests

2 participants