px versus em
setColumnWidth() like other methods to set dimension properties are implicitely in "px" - is there any reason why it's not "em" ?
How would I set it in "em" ?
How would I set it in "em" ?
Philippe Marzin
December 16,
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"></meta>
<link rel="stylesheet" href="../activewidget/runtime/styles/aqua/aw.css" type="text/css" />
<script language="javascript" type="text/javascript" src="../activewidget/runtime/lib/aw.js"></script>
</head>
<body>
<p>
<style>
.aw-column-0 {width:80em}
.aw-column-1 {width:80px}
</style>
<script>
var obj = new AW.UI.Grid;
obj.setSize(1000, 200)
obj.setCellText("text");
obj.setHeaderText("header");
obj.setColumnCount(10);
obj.setRowCount(10);
document.write(obj);
</script>
</body>
</html>
This topic is archived.
ActiveWidgets is a javascript library for creating user interfaces. It offers excellent performance for complex screens while staying simple, compact and easy to learn. Deployed by thousands of commercial customers in more than 70 countries worldwide.
Copyright © ActiveWidgets 2021