blob: 103198a7f45bbc296b26bdb048e12ba763ea9a8a [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!--
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
-->
<!-- XXX This is an old page. Content might not be up to date. Needs to be refactored, or just deleted. -->
<f:view
xmlns:tc="http://myfaces.apache.org/tobago/component"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:f="http://java.sun.com/jsf/core">
<tc:page id="page">
<!-- todo: support the automatical computed width of the scrollbar -->
<!-- <tc:gridLayoutConstraint width="320px" height="600px"/> -->
<f:facet name="layout">
<tc:gridLayout rows="100px auto 1fr 1fr" columns="300px"/>
</f:facet>
<tc:textarea
readonly="true"
value="What happens, when a * is in a columns/rows definition, and the space for the * is too low: The column/row size will be set to the minium."/>
<tc:image id="image-1" value="pidgeon-point.jpg">
<!-- <tc:gridLayoutConstraint minimumHeight="400px"/> -->
</tc:image>
<tc:image id="image-2" value="pidgeon-point.jpg">
<!-- <tc:gridLayoutConstraint minimumHeight="400px"/> -->
</tc:image>
<tc:image id="image-3" value="pidgeon-point.jpg">
<!-- <tc:gridLayoutConstraint minimumHeight="400px"/> -->
</tc:image>
<tc:script file="script/tobago-assert.js"/>
<tc:script onload="TobagoAssert.assertLayout('page:image-1', 0, 105, 300, 400);"/>
<tc:script onload="TobagoAssert.assertLayout('page:image-2', 0, 510, 300, 400);"/>
<tc:script onload="TobagoAssert.assertLayout('page:image-3', 0, 915, 300, 400);"/>
</tc:page>
</f:view>