def _OnSizeChange_NoBlock(self, newWidth, newHeight): Container._OnSizeChange_NoBlock(self, newWidth, newHeight) if self.amountLabel is not None: textWidth = self.amountLabel.textwidth availableTextWidth = newWidth - textWidth - 14 self.nameLabel.SetRightAlphaFade(fadeEnd=availableTextWidth, maxFadeWidth=20)
def _OnSizeChange_NoBlock(self, width, height): Container._OnSizeChange_NoBlock(self, width, height) self.UpdateSizes((width, height))