mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(core): ListViewCell.initWithEmptyBackground (#8985)
This commit is contained in:
committed by
GitHub
parent
86c689ef7e
commit
0eb2246b7d
@@ -30,7 +30,7 @@ class ListViewCell extends UITableViewCell {
|
|||||||
public static initWithEmptyBackground(): ListViewCell {
|
public static initWithEmptyBackground(): ListViewCell {
|
||||||
const cell = <ListViewCell>ListViewCell.new();
|
const cell = <ListViewCell>ListViewCell.new();
|
||||||
// Clear background by default - this will make cells transparent
|
// Clear background by default - this will make cells transparent
|
||||||
cell.backgroundColor = null;
|
cell.backgroundColor = UIColor.clearColor;
|
||||||
|
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
@@ -38,7 +38,7 @@ class ListViewCell extends UITableViewCell {
|
|||||||
initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this {
|
initWithStyleReuseIdentifier(style: UITableViewCellStyle, reuseIdentifier: string): this {
|
||||||
const cell = <this>super.initWithStyleReuseIdentifier(style, reuseIdentifier);
|
const cell = <this>super.initWithStyleReuseIdentifier(style, reuseIdentifier);
|
||||||
// Clear background by default - this will make cells transparent
|
// Clear background by default - this will make cells transparent
|
||||||
cell.backgroundColor = null;
|
cell.backgroundColor = UIColor.clearColor;
|
||||||
|
|
||||||
return cell;
|
return cell;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user