How to change checkbox to required html format in pdfmake? - html

I want to change the below html to required format as in below image,
<div id="pdfTable" #pdfTable style="display: none;">
<table class="table table-borderless mb-0" style="font-size:14px;">
<thead>
<label for="" style="text-align: center;">Recommendation: </label>
<tr style="">
<td *ngFor="let recommendation of recommendations" style="border:0;width:25%">
<span *ngIf="recoName == recommendation.listTypeValueName">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYA alt="">
{{recommendation.listTypeValueName}}
</span>
<p *ngIf="recoName != recommendation.listTypeValueName"><img
src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAA alt="">
{{recommendation.listTypeValueName}} </p>
</td>
</tr>
</thead>
</table>
</div>
Required Format
What I am getting from above html

<div id="pdfTable" #pdfTable style="display: none;">
<table class="table table-borderless mb-0" style="font-size:14px;">
<thead>
<tr style="">
<th colspan="2" style="text-align: center;">Recommendation:</th>
</tr>
</thead>
<tbody>
<tr *ngFor="let recommendation of recommendations">
<td style="width:25%;text-align:center;">
<img src="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYA">
</td>
<td style="width:75%;text-align:left;">
{{recommendation.listTypeValueName}}
</td>
</tr>
</tbody>
</table>
</div>

Related

How to remove gap between two td

How to remove gap between two td ? I have tried some below solutions
from the Internet but none of them work. Attached the screenshot for
reference too. It will give clear idea of problem. The gap between two TD is very wide. How to reduce this Gap.
class="align-middle"
CELLSPACING=0
row-gap: 0;
class="views-field views-field-region views-align-center"
<app-header></app-header>
<section class="container">
<div class="row" style="background-color: white;">
<div class="col-xs-12 col-sm-8 col-md-4" >
<form action="/update/pricelist" method="POST" id="upload-file" enctype="multipart/form-data">
<h3>Import Pricelist</h3>
<hr>
<div class="wrapper-messages">
</div>
<br>
<input type="file" name="price_list" id="edit_price_list" (change)="ReadExcel($event)">
<div class="error-msg"></div>
<hr>
<div class="views-exposed-widget views-submit-button">
<button type="submit" class="btn btn-info form-submit icon-before submit-pricelist">
<span class="icon glyphicon glyphicon-ok" aria-hidden="true"></span>
Import
</button>
</div>
<br>
</form>
</div>
</div>
</section>
<!-- Table for excel -->
<div class="main-container container-fluid">
<div class="row">
<section id="block-views-exp-land-page" class="block block-views clearfix">
<form autocomplete="off" action="" method="post" id="views-exposed-form-land-page" accept-charset="UTF-8">
<div>
<section id="block-system-main" class="block block-system clearfix">
<div
class="view view-land view-id-land view-display-id-page table-checkbox-all view-dom-id-8d32f83bab6c36c396b926a7c7c35f7f">
</div>
<div class="view-content">
<div class="table-responsive" class="col-10" class="row align-items-center" class="col-md-12">
<table class="views-table cols-16 table table-hover table-0 table-0 table-0 neilsoft-region-table">
<thead class="neilsoft-region-table-head">
<tr>
<th class="views-field views-field-region views-align-center">
Autodesk Material Description
</th>
<th class="views-field views-field-php-4 views-align-center">
Autodesk SAP Material Description
</th>
<th class="views-field views-field-php-2 views-align-center">
Product Coming From
</th>
<th class="views-field views-field-php-2 views-align-center">
Media
</th>
</tr>
</thead>
</table>
</div>
</div>
<div class="view-content">
<div class="table-responsive" class="col-10" class="row align-items-center" class="col-md-12">
<table class="views-table cols-16 table table-hover table-0 table-0 table-0 neilsoft-region-table">
<thead class="neilsoft-region-table-head">
<tr *ngFor="let pricedata of ExcelData" class="align-middle">
<td>
{{pricedata.Autodesk_Material_Description}}
</td>
<td>
{{pricedata.Autodesk_SAP_Material_Description}}
</td>
<td>
{{pricedata.Product_Coming_From}}
</td>
<td>
{{pricedata.Media}}
</td>
</tr>
</thead>
</table>
</div>
</div>
</section>
</div>
</form>
</section>
</div>
</div>
<app-footer></app-footer>[enter image description here][1]
I suggest you looking for html table colspan (https://html.com/tables/rowspan-colspan/). With colspan you can merge two td cells. Take a look in the example below:
td {
width: 30px;
}
<table border="1">
<tr>
<td colspan="2">Merged</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
</tr>
</table>
Perhaps border-collapse: collapse; is what you鈥檙e missing?
td {
background: red;
color: white;
padding: 0.5em;
}
.t1 {
margin-top: 2em;
border-collapse: collapse;
}
<table>
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
</table>
<table class="t1">
<tr><td>1</td><td>2</td><td>3</td></tr>
<tr><td>4</td><td>5</td><td>6</td></tr>
</table>

How to remove horizontal line table bootstrap?

Is there any other way to remove the horizontal line of the table but the header should not? I'm using the table-sm, but it seems I cannot include it.
.table-no-bottom-border,
.table-no-bottom-border td {
border-top: 0px solid white !important;
border-bottom: 0px solid white !important;
}
<link href="https://cdn.jsdelivr.net/npm/bootstrap#5.0.0-beta3/dist/css/bootstrap.min.css" rel="stylesheet" />
<html lang="en-US" web-base-url="http://localhost:1369">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1">
<title>Report</title>
<link type="text/css" rel="stylesheet" href="/web/content/302-9ddfff2/web.report_assets_common.css" data-asset-xmlid="web.report_assets_common" data-asset-version="9ddfff2">
<script type="text/javascript" src="/web/content/197-6f5d250/web.assets_common.js" data-asset-xmlid="web.assets_common" data-asset-version="6f5d250"></script>
<script type="text/javascript" src="/web/content/303-9ddfff2/web.report_assets_common.js" data-asset-xmlid="web.report_assets_common" data-asset-version="9ddfff2"></script>
</head>
<body class="container">
<div id="wrapwrap">
<main>
<div class="article o_report_layout_standard o_company_1_layout" data-oe-model="account.move" data-oe-id="2" data-oe-lang="en_US">
<div class="page">
<div class="row">
<div class="col-xs-6" style="width: 75%; padding-right: 20%;">
<table class="table table-sm o_main_table table-bordered" border="1">
<thead>
<tr>
<th class="text-center" colspan="2"><span>CUSTOMER</span></th>
</tr>
<tr>
<th class="text-left"><span>SHIP TO:</span></th>
<th class="text-left"><span>BILL TO:</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr class="font-weight-bold o_line_section">
<td class="text-left"><span>Collision Center</span> <span>
<address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization">
<div>
<span itemprop="name">Collision Center</span>
</div>
<div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress">
<div class="d-flex align-items-baseline">
<span class="w-100 o_force_ltr d-block" itemprop="streetAddress">Sw 47 Terrace<br>Miami FL<br>United States</span>
</div>
</div>
</address>
</span>
</td>
<td class="text-left"><span>Collision Center</span> <span>
<address class="mb-0" itemscope="itemscope" itemtype="http://schema.org/Organization">
<div>
<span itemprop="name">Collision Center</span>
</div>
<div itemprop="address" itemscope="itemscope" itemtype="http://schema.org/PostalAddress">
<div class="d-flex align-items-baseline">
<span class="w-100 o_force_ltr d-block" itemprop="streetAddress">Sw 47 Terrace<br>Miami FL<br>United States</span>
</div>
</div>
</address>
</span>
</td>
</tr>
</tbody>
</table>
</div>
<div class="col-xs-6">
<table class="table table-sm o_main_table table-bordered" border="1" style="width: 100%">
<thead>
<tr style="height: 10px">
<th class="text-center" colspan="2">
<span>TAX INVOICE #</span>
</th>
</tr>
</thead>
<tbody>
<tr class="font-weight-bold o_line_section text-center">
<td colspan="2">
<h3 style="color: red;"><strong><span>/</span></strong></h3>
</td>
</tr>
</tbody>
</table>
</div>
</div>
<div class="row">
<table style="width: 100%" class="table-sm o_main_table table-bordered" border="1">
<thead>
<tr>
<th class="text-left"><span>CUSTOMER ORDER NO</span></th>
<th class="text-left"><span>CUSTOMER CODE</span></th>
<th class="text-left"><span>DELIVERY DATE</span></th>
<th class="text-left"><span>INVOICE DATE</span></th>
<th class="text-left"><span>SHIPMENT NUMBER</span></th>
<th class="text-left"><span>PACKED BY</span></th>
<th class="text-left"><span>NO. OF PACKAGES</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr class="font-weight-bold o_line_section">
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
</tr>
</tbody>
</table>
</div>
<div class="row">
<table style="width: 100%;" class="table-sm table-bordered table-no-bottom-border" border="1">
<thead>
<tr>
<th class="text-left"><span>LINE NO.</span></th>
<th class="text-left"><span>PART NO.</span></th>
<th class="text-center"><span>DESCRIPTION</span></th>
<th class="text-left"><span>QUANTITY ORDERED</span></th>
<th class="text-left"><span>QUANTITY SUPPLIED</span></th>
<th class="text-left"><span>B.O.</span></th>
<th class="text-left"><span>PRICE</span></th>
<th class="text-left"><span>DISCOUNT</span></th>
<th class="text-left"><span>TOTAL AMOUNT</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr class="font-weight-bold">
<td class="text-left"><span>1</span></td>
<td name="account_invoice_line_code">
<span>101006</span>
</td>
<td name="account_invoice_line_name"><span>[101006] G80 Master Link Large 6mm Type SD</span></td>
<td name="qty_delivered" class="text-right"><span>0</span></td>
<td name="qty_ordered" class="text-right"><span>1.00</span></td>
<td name="qty_bo" class="text-left"><span>0</span></td>
<td name="unit_price" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">5.73</span>
</td>
<td name="unit_discount" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">0.00</span>
</td>
<td name="sub_total" class="text-right o_price_total">
<span class="text-nowrap">$ <span class="oe_currency_value">5.73</span></span>
</td>
</tr>
<tr class="font-weight-bold">
<td class="text-left"><span>2</span></td>
<td name="account_invoice_line_code">
<span>101010</span>
</td>
<td name="account_invoice_line_name"><span>[101010] G80 Master Link Large Type SD 10/8mm</span></td>
<td name="qty_delivered" class="text-right"><span>0</span></td>
<td name="qty_ordered" class="text-right"><span>1.00</span></td>
<td name="qty_bo" class="text-left"><span>0</span></td>
<td name="unit_price" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">13.27</span>
</td>
<td name="unit_discount" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">0.00</span>
</td>
<td name="sub_total" class="text-right o_price_total">
<span class="text-nowrap">$ <span class="oe_currency_value">13.27</span></span>
</td>
</tr>
<tr class="font-weight-bold">
<td class="text-left"><span>3</span></td>
<td name="account_invoice_line_code">
<span>101208</span>
</td>
<td name="account_invoice_line_name"><span>[101208] G80 Multi Link Type MD 7/8mm</span></td>
<td name="qty_delivered" class="text-right"><span>0</span></td>
<td name="qty_ordered" class="text-right"><span>1.00</span></td>
<td name="qty_bo" class="text-left"><span>0</span></td>
<td name="unit_price" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">39.71</span>
</td>
<td name="unit_discount" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">0.00</span>
</td>
<td name="sub_total" class="text-right o_price_total">
<span class="text-nowrap">$ <span class="oe_currency_value">39.71</span></span>
</td>
</tr>
<tr class="font-weight-bold">
<td class="text-left"><span>4</span></td>
<td name="account_invoice_line_code">
<span>101806</span>
</td>
<td name="account_invoice_line_name"><span>[101806] G80 Chain Connector Type CL | 6mm to 32mm\r\n(6mm)</span></td>
<td name="qty_delivered" class="text-right"><span>0</span></td>
<td name="qty_ordered" class="text-right"><span>1.00</span></td>
<td name="qty_bo" class="text-left"><span>0</span></td>
<td name="unit_price" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">6.60</span>
</td>
<td name="unit_discount" class="text-right d-none d-md-table-cell">
<span class="text-nowrap">0.00</span>
</td>
<td name="sub_total" class="text-right o_price_total">
<span class="text-nowrap">$ <span class="oe_currency_value">6.60</span></span>
</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</main>
</div>
</body>
</html>
Also, is it possible to have a fixed height of a <td></td> even the <tbody></tbody> doesn't have record inside it?
<div class="row">
<table style="width: 100%" class="table-sm o_main_table table-bordered" border="1">
<thead>
<tr>
<th class="text-left"><span>CUSTOMER ORDER NO</span></th>
<th class="text-left"><span>CUSTOMER CODE</span></th>
<th class="text-left"><span>DELIVERY DATE</span></th>
<th class="text-left"><span>INVOICE DATE</span></th>
<th class="text-left"><span>SHIPMENT NUMBER</span></th>
<th class="text-left"><span>PACKED BY</span></th>
<th class="text-left"><span>NO. OF PACKAGES</span></th>
</tr>
</thead>
<tbody class="invoice_tbody">
<tr class="font-weight-bold o_line_section">
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
<td class="text-left"></td>
</tr>
</tbody>
</table>
</div>

Bootstrap will not put my two tables in two columns next to one another

Trying to put two tables next to one another. One col-md-4 and the other col-md-8 I want the 4 to be on the left and the 8 to be on the right. Left table being game messages and buttons while the right table is the tic tac toe board. My understanding is when using bootstrap I just need columns to add up to a total of 12.
</head>
<body class="bodyNormal">
<div class="container">
<div class="row">
<div class="col-md-12" style="text-align: center">
<h3 class="mainimg">Tic Tac Toe Game</h3>
</div>
</div>
<div class="row bg-white">
<div class="col-md-4">
<table class="table">
<tbody>
<tr>
<th>
<button class="btn" id="newGame">馃攧 New game</button>
</th>
</tr>
<tr>
<th>2</th>
</tr>
<tr>
<th>
<h2 class="player1Turn hidden">Player 1 Turn</h2>
<h2 class="player2Turn hidden">Player 2 Turn</h2>
</th>
</tr>
</tbody>
</table>
<div class="col-md-8">
<table>
<tr>
<td class="grid">7<img src="X.jpg"</td>
<td class="vert grid">8<img src="O.jpg"</td>
<td class="grid">9<img src="X.jpg"</td>
</tr>
<tr>
<td class="hori grid">4<img src="O.jpg"</td>
<td class="vert hori grid">5<img src="X.jpg"</td>
<td class="hori grid">6<img src="O.jpg"</td>
</tr>
<tr>
<td class="grid">1<img src="X.jpg"</td>
<td class="vert grid">2<img src="O.jpg"</td>
<td class="grid">3<img src="X.jpg"</td>
</tr>
</table>
</div>
</div>
</div>
<br />
<script src="index.js"></script>
<script src="node_modules/jquery/dist/jquery.js"></script>
<script src="node_modules/bootstrap/dist/js/bootstrap.bundle.js"></script>
</body>
You forgot one div close for col-md-4
</table></div> /*Close Here One div*/
<div class="col-md-8">
https://jsfiddle.net/lalji1051/y0k4bs6p/3/
Problem is you forgot to close div for col-md-4.
Updated code
<div class="container">
<div class="row">
<div class="col-md-12" style="text-align: center">
<h3 class="mainimg">Tic Tac Toe Game</h3>
</div>
</div>
<div class="row bg-white">
<div class="col-md-4">
<table class="table">
<tbody>
<tr>
<th>
<button class="btn" id="newGame">馃攧 New game</button>
</th>
</tr>
<tr>
<th>2</th>
</tr>
<tr>
<th>
<h2 class="player1Turn hidden">Player 1 Turn</h2>
<h2 class="player2Turn hidden">Player 2 Turn</h2>
</th>
</tr>
</tbody>
</table>
</div>
<div class="col-md-8">
<table>
<tr>
<td class="grid">7<img src="X.jpg" </td>
<td class="vert grid">8<img src="O.jpg" </td>
<td class="grid">9<img src="X.jpg" </td>
</tr>
<tr>
<td class="hori grid">4<img src="O.jpg" </td>
<td class="vert hori grid">5<img src="X.jpg" </td>
<td class="hori grid">6<img src="O.jpg" </td>
</tr>
<tr>
<td class="grid">1<img src="X.jpg" </td>
<td class="vert grid">2<img src="O.jpg" </td>
<td class="grid">3<img src="X.jpg" </td>
</tr>
</table>
</div>
</div>
</div>

Couldn't apply pagebreak

I have a list of Months which I want to show one per page while printing, so I thought of using page breaks but the issue is I couldn't apply page breaks. I have also tried putting <div class="pagebreak"></div> but I don't understand why it isn't taking effect. Here is my code:
.pagebreak{
page-break-after: always;
}
<table class="fc-year-main-table fc-border-separate">
<tr>
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name fc-first"><a name="201401" data-year="2014" data-month="0" href="#">January</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201402" data-year="2014" data-month="1" href="#">February</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201403" data-year="2014" data-month="2" href="#">March</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201404" data-year="2014" data-month="3" href="#">April</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
</table>
The first <tr> had no pagebreak class and its </tr> missing, apart from those issues (fixed them) it works using
#media print {
tr.pagebreak { display: block; page-break-before: always; }
}
Seems like pagebreak in tr is a bit tricky, check this question Applying "page-break-before" to a table row (tr)
Working demo:
window.print();
#media print {
tr.pagebreak { display: block; page-break-before: always; }
}
<table class="fc-year-main-table fc-border-separate">
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name fc-first"><a name="201401" data-year="2014" data-month="0" href="#">January</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201402" data-year="2014" data-month="1" href="#">February</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201403" data-year="2014" data-month="2" href="#">March</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
<tr class="pagebreak">
<td class="fc-year-month-border fc-first"></td>
<td class="fc-year-monthly-td" style="">
<div class="fc-year-monthly-name"><a name="201404" data-year="2014" data-month="3" href="#">April</a></div>
<div class="fc-row fc-widget-header">
<table class="fc-year-month-header">
<thead>
<tr class="fc-year-week-days"></tr>
<tr></tr>
</thead>
</table>
</div>
<div class="fc-day-grid-container">
<div class="fc-day-grid"></div>
</div>
<div class="fc-year-monthly-footer"></div>
</td>
<td class="fc-year-month-border fc-last"></td>
</tr>
</table>

RTL mode in IE makes field labels align incorrectly in ExtJS 3.3.0 Window Form

I am working with ExtJS 3.3.0 with an RTL fix, and I have an override on all of the required classes to align the fields correctly.
I keep having an issue with floating forms, though, where my field labels sometimes disappear. I have investigated the issue, and discovered that the label is not actually gone - it has just popped over to the left (and therefore doesn't show) for no discernable reason.
Here is what my dialog should look like (and does the first time it's shown):
Unfortunately, here is what it looks like the second time it gets shown:
This is the window HTML as created by ExtJS (Note: the HTML of the document is marked dir="rtl"):
<div class="x-window-tl">
<div class="x-window-tr">
<div class="x-window-tc">
<div style="mozuserselect: none; khtmluserselect: none" id="ext-gen129" class="x-window-header x-unselectable x-window-draggable"
unselectable="on">
<div id="ext-gen135" class="x-tool x-tool-close">
</div>
<span id="ext-gen141" class="x-window-header-text">砖讬谞讜讬 转讗专讬讱 讗住驻拽讛</span>
</div>
</div>
</div>
</div>
<div id="ext-gen130" class="x-window-bwrap">
<div class="x-window-ml">
<div class="x-window-mr">
<div id="ext-gen134" class="x-window-mc">
<div style="width: 297px; height: 40px" id="ext-gen131" class="x-window-body">
<div style="width: 297px" id="ext-comp-1046" class=" x-panel x-form-label-left">
<div id="ext-gen147" class="x-panel-bwrap">
<form style="padding-bottom: 8px; padding-left: 8px; width: 297px; padding-right: 8px; height: 40px; padding-top: 8px"
id="ext-gen128" class="x-panel-body x-panel-body-noheader x-form"
method="post">
<div style="width: 300px" dir="rtl" id="ext-gen149" class="x-form-item " tabindex="-1">
<label style="width: 75px" id="ext-gen150" class="x-form-item-label" for="ext-comp-1045">
转讗专讬讱 讞讚砖:</label>
<div style="padding-right: 80px" id="x-form-el-ext-comp-1045" class="x-form-element">
<div style="width: 133px" dir="rtl" id="ext-gen152" class="x-form-field-wrap x-form-field-trigger-wrap">
<input style="width: 133px" id="ext-comp-1045" class="x-form-text x-form-field x-trigger-noedit"
name="ext-comp-1045" readonly value="2012-11-22" size="10" autocomplete="off"
qtip><img id="ext-gen153" class="x-form-trigger x-form-date-trigger" alt="" src="http://localhost/bDox/NipImages/s.gif">
</div>
</div>
<div class="x-form-clear-left">
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</div>
<div id="ext-gen133" class="x-window-bl">
<div class="x-window-br">
<div class="x-window-bc">
<div style="width: 297px" id="ext-gen132" class="x-window-footer x-panel-btns">
<div style="width: 287px" id="ext-comp-1049" class="x-panel-fbar x-small-editor x-toolbar-layout-ct">
<table class="x-toolbar-ct" cellspacing="0">
<tbody>
<tr>
<td class="x-toolbar-right" align="center">
<table cellspacing="0">
<tbody>
<tr class="x-toolbar-right-row">
<td id="ext-gen142" class="x-toolbar-cell">
<table style="width: 75px" id="ext-comp-1047" class="x-btn x-btn-noicon" cellspacing="0">
<tbody class="x-btn-small x-btn-icon-small-right">
<tr>
<td class="x-btn-tl">
<i> </i>
</td>
<td class="x-btn-tc"></td>
<td class="x-btn-tr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-ml">
<i> </i>
</td>
<td class="x-btn-mc">
<em unselectable="on">
<button style="" id="ext-gen143" class=" x-btn-text">
讗砖专</button></em>
</td>
<td class="x-btn-mr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-bl">
<i> </i>
</td>
<td class="x-btn-bc"></td>
<td class="x-btn-br">
<i> </i>
</td>
</tr>
</tbody>
</table>
</td>
<td id="ext-gen144" class="x-toolbar-cell">
<table style="width: 75px" id="ext-comp-1048" class="x-btn x-btn-noicon" cellspacing="0">
<tbody class="x-btn-small x-btn-icon-small-right">
<tr>
<td class="x-btn-tl">
<i> </i>
</td>
<td class="x-btn-tc"></td>
<td class="x-btn-tr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-ml">
<i> </i>
</td>
<td class="x-btn-mc">
<em unselectable="on">
<button style="" id="ext-gen145" class=" x-btn-text">
讘讬讟讜诇</button></em>
</td>
<td class="x-btn-mr">
<i> </i>
</td>
</tr>
<tr>
<td class="x-btn-bl">
<i> </i>
</td>
<td class="x-btn-bc"></td>
<td class="x-btn-br">
<i> </i>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
<td class="x-toolbar-left" align="left">
<table class="x-toolbar-left-ct" cellspacing="0">
<tbody>
<tr>
<td>
<table cellspacing="0">
<tbody>
<tr class="x-toolbar-left-row">
</tr>
</tbody>
</table>
</td>
<td>
<table cellspacing="0">
<tbody>
<tr class="x-toolbar-extras-row">
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
</tbody>
</table>
</div>
<div id="ext-gen137" class="x-clear">
</div>
</div>
</div>
</div>
</div>
</div>
<a id="ext-gen138" class="x-dlg-focus" tabindex="-1" href="http://localhost/bDox/Asn.aspx?n=20112112_18&cid=8ab8ba6a-1de0-4344-bed6-a48b93c497e6&vid=4cf57ca1-78ea-4d6a-94b5-cd20b322a2f8#"> </a>
Note: this only occurs in IE.
I have read several times that IE has issues with floating elements in RTL mode, and that the fix was to set the width to the container of the floating element.
I have done this on the after render event, but to no avail:
newDateField.on('afterrender', function (field) {
var elem = field.getEl(),
p = elem.parent(),
formItem = elem.parent('.x-form-item');
p.setWidth(elem.getWidth());
formItem.setWidth(300);
}, this);
I have also tried removing the DOCTYPE and using a STRICT DOCTYPE. Also no help.
Any suggestions?