Fix MTLabel creation.
This commit is contained in:
@@ -171,6 +171,7 @@ public class MTMathUILabel : MTView {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func initCommon() {
|
func initCommon() {
|
||||||
|
errorLabel = MTLabel()
|
||||||
#if os(macOS)
|
#if os(macOS)
|
||||||
self.layer?.isGeometryFlipped = true
|
self.layer?.isGeometryFlipped = true
|
||||||
errorLabel?.layer?.isGeometryFlipped = true
|
errorLabel?.layer?.isGeometryFlipped = true
|
||||||
@@ -179,7 +180,6 @@ public class MTMathUILabel : MTView {
|
|||||||
errorLabel?.layer.isGeometryFlipped = true
|
errorLabel?.layer.isGeometryFlipped = true
|
||||||
#endif
|
#endif
|
||||||
self.backgroundColor = MTColor.clear
|
self.backgroundColor = MTColor.clear
|
||||||
errorLabel = MTLabel()
|
|
||||||
errorLabel?.isHidden = true
|
errorLabel?.isHidden = true
|
||||||
errorLabel?.textColor = MTColor.red
|
errorLabel?.textColor = MTColor.red
|
||||||
self.addSubview(errorLabel!)
|
self.addSubview(errorLabel!)
|
||||||
|
|||||||
Reference in New Issue
Block a user