Skip to content

Conversation

@beeman
Copy link
Collaborator

@beeman beeman commented Dec 18, 2020

Fix #220

y: number
}

export type IAreaSize = number | '*'
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

weird to prefix a type (not an interface) with the capital I prefix that means Interface :P

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point @lf-novelt - I'm not a fan of the I for interfaces either, it's more a matter of keeping consistency.

@lf-novelt
Copy link
Contributor

Thanks for the PR.
Can you set the description of the first post to the following please?
Fix #220

@108174
Copy link

108174 commented Jun 12, 2021

Has this been merged yet? Still having the issue; using the $any('*') workaround for now

@beeman
Copy link
Collaborator Author

beeman commented Jun 12, 2021

Has this been merged yet? Still having the issue; using the $any('*') workaround for now

Sorry, little time for maintenance currently. I will see if I can cut a release and include this change.

@KyDenZ
Copy link

KyDenZ commented Jan 28, 2022

Can you merge this modification?

@angular-split angular-split deleted a comment from zbagley Apr 14, 2022
@laggage
Copy link

laggage commented Aug 5, 2022

Is there a plan to release this PR?

@Harpush
Copy link
Collaborator

Harpush commented Dec 2, 2022

@beeman The PR seems good... Any reason to wait with it?

@wf9a5m75
Copy link

wf9a5m75 commented Apr 15, 2023

For the people who are waiting this PR. This PR is still waiting for some reasons.
Meanwhile, you can do with [size]="$any('*').

For example:

<as-split
  [direction]="'horizontal'"
  [unit]="'pixel'"
>
  
   <as-split-area
     [size]="280"
     [maxSize]="280">
    A
   </as-split-area>
   
   <as-split-area
     [size]="$any('*')">
    B
   </as-split-area>

</as-split>

marksvc added a commit to sillsdev/web-xforge that referenced this pull request Aug 29, 2023
In situations where we hide the text, intending just for the audio
player to be used, the patch makes the text+audio area have a maximum
size of the height needed by the audio player (109 px), to just show
the audio player. The audio area can still be made smaller to move it
up out of the way.

In the case where we do not hide the text, and whether or not there is
audio, still we show the question area as a smaller area near the
bottom of the screen, with the Scripture text area using most of the
available space. Though I made the question area slightly bigger than
it was before so the "Add answer" button has a greater chance of being
fully visible (170 px).

Using `$any('*')` workaround until this PR is merged:
angular-split/angular-split#289
After that, just `'*'` can be used.
marksvc added a commit to sillsdev/web-xforge that referenced this pull request Aug 30, 2023
In situations where we hide the text, intending just for the audio
player to be used, the patch makes the text+audio area have a maximum
size of the height needed by the audio player (109 px), to just show
the audio player. The audio area can still be made smaller to move it
up out of the way.

In the case where we do not hide the text, and whether or not there is
audio, still we show the question area as a smaller area near the
bottom of the screen, with the Scripture text area using most of the
available space. Though I made the question area slightly bigger than
it was before so the "Add answer" button has a greater chance of being
fully visible (170 px).

Using `$any('*')` workaround until this PR is merged:
angular-split/angular-split#289
After that, just `'*'` can be used.
marksvc added a commit to sillsdev/web-xforge that referenced this pull request Aug 31, 2023
In situations where we hide the text, intending just for the audio
player to be used, the patch makes the text+audio area have a maximum
size of the height needed by the audio player (109 px), to just show
the audio player. The audio area can still be made smaller to move it
up out of the way.

In the case where we do not hide the text, and whether or not there is
audio, still we show the question area as a smaller area near the
bottom of the screen, with the Scripture text area using most of the
available space. Though I made the question area slightly bigger than
it was before so the "Add answer" button has a greater chance of being
fully visible (170 px).

Using `$any('*')` workaround until this PR is merged:
angular-split/angular-split#289
After that, just `'*'` can be used.
@beeman beeman closed this Sep 3, 2023
@beeman beeman deleted the beeman/fix-size-params branch September 4, 2023 23:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Incorrect @Input size typing when strictTemplates is enabled

8 participants